HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0748d3
)
lib/perf.mal (trivial): println instead of prn and str
author
Nicolas Boulenguez
<nicolas.boulenguez@free.fr>
Sun, 2 Jun 2019 11:17:41 +0000
(13:17 +0200)
committer
Nicolas Boulenguez
<nicolas.boulenguez@free.fr>
Wed, 17 Jul 2019 22:00:03 +0000
(
00:00
+0200)
lib/perf.mal
patch
|
blob
|
blame
|
history
diff --git
a/lib/perf.mal
b/lib/perf.mal
index
2bc8687
..
9867b7c
100644
(file)
--- a/
lib/perf.mal
+++ b/
lib/perf.mal
@@
-11,7
+11,7
@@
`(let* (~start (time-ms)
~ret ~exp)
(do
- (pr
n (str "Elapsed time: " (- (time-ms) ~start) " msecs")
)
+ (pr
intln "Elapsed time:" (- (time-ms) ~start) "msecs"
)
~ret)))))
;; Count evaluations of a function during a given time frame.