elif on JS instead of generic else
This commit is contained in:
parent
962b311727
commit
a50393af78
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ when not defined(JS):
|
||||||
proc cpuTime(): float =
|
proc cpuTime(): float =
|
||||||
result = toFloat(int(clock())) / toFloat(clocksPerSec)
|
result = toFloat(int(clock())) / toFloat(clocksPerSec)
|
||||||
|
|
||||||
else:
|
elif defined(JS):
|
||||||
proc newDate(): TTime {.importc: "new Date", nodecl.}
|
proc newDate(): TTime {.importc: "new Date", nodecl.}
|
||||||
proc getTime(): TTime = return newDate()
|
proc getTime(): TTime = return newDate()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue