mirror of
https://github.com/kanaka/mal.git
synced 2024-11-10 12:47:45 +03:00
f4c8a091aa
- Can support numbers up to 100 decimal digits in length. - Still no support for negative numbers or floating point. - Change time-secs to time-ms and remove conditional in perf.mal
8 lines
195 B
Plaintext
8 lines
195 B
Plaintext
(defmacro! time
|
|
(fn* (exp)
|
|
`(let* [start_FIXME (time-ms)
|
|
ret_FIXME ~exp]
|
|
(do
|
|
(prn (str "Elapsed time: " (- (time-ms) start_FIXME) " msecs"))
|
|
ret_FIXME))))
|