Welcome to the CHICKEN Scheme pasting service

for ecraven: /proc/uptime added by mejja on Fri May 13 15:18:30 2016


(define (now) (call-with-input-file "/proc/uptime" read))

I think it is all you need and that you should use it for all systems

(define (timeit thunk)
  (let ((start (now)))
    (thunk)
    (let ((end (now)))
      (- end start))))

(timeit (lambda () (wait-interval 1000)))
;Value: 1.

(timeit (lambda () (wait-interval 2000)))
;Value: 2.

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What type of object does `for-each' expect as second argument?
Visually impaired? Let me spell it for you (wav file) download WAV