summaryrefslogtreecommitdiff
path: root/strigoform/time.scm
blob: 00971a09dd1dd9ccb4cf8acd8dff480725cd13fc (plain)
1
2
3
4
5
6
7
8
9
10
11
(library (strigoform time)
  (export current-time)
  (import (scheme base)
          (scheme time))

  (define %jps
    (cond-expand
     (guile-vm 0.0)
     (hoot (inexact (jiffies-per-second)))))
  (define (current-time)
    (/ (inexact (current-jiffy)) %jps)))