diff options
-rwxr-xr-x | lib/pure/times.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim index da8d86363..6a73303d9 100755 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -428,7 +428,7 @@ when not defined(JS): proc cpuTime(): float = result = toFloat(int(clock())) / toFloat(clocksPerSec) -else: +elif defined(JS): proc newDate(): TTime {.importc: "new Date", nodecl.} proc getTime(): TTime = return newDate() |