cleanup etc/tak.scm

This commit is contained in:
Yuichi Nishiwaki 2013-11-04 13:19:04 -05:00
parent aeff650ccf
commit 70fbe46dc1
1 changed files with 6 additions and 9 deletions

View File

@ -1,12 +1,8 @@
(define start #f)
(define end #f)
(define (time f)
(set! start (current-jiffy))
(f)
(set! end (current-jiffy))
(/ (- end start) (jiffies-per-second)))
(let ((start (current-jiffy)))
(f)
(/ (- (current-jiffy) start)
(jiffies-per-second))))
(define (tak x y z)
(if (> x y)
@ -19,3 +15,4 @@
(tak 12 6 0))
(write (time f))
(newline)