diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2013-02-15 20:28:13 -0600 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2013-02-15 20:28:13 -0600 |
commit | a50393af78074449047b146229626d2196441ef2 (patch) | |
tree | f6d93f39c8f21cf3e25937bf0bdd215aa0d06c5c /lib | |
parent | 962b311727bb460daa92f7a3e1d0e7ce0b7fc16d (diff) | |
download | Nim-a50393af78074449047b146229626d2196441ef2.tar.gz |
elif on JS instead of generic else
Diffstat (limited to 'lib')
-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() |