Rename Time.nanoseconds to nanosecond (#7673)

* Rename `Time.nanoseconds` to `nanosecond`

* Fix bug with Duration comparision
This commit is contained in:
Oscar Nihlgård 2018-04-25 02:43:26 +02:00 • committed by Andreas Rumpf
commit b34580fd5b
3 changed files with 37 additions and 33 deletions

View file

@ -192,7 +192,7 @@ when not defined(nimscript):
## Initializes the random number generator with a "random"
## number, i.e. a tickcount. Note: Does not work for NimScript.
let now = times.getTime()
randomize(convert(Seconds, Nanoseconds, now.toUnix) + now.nanoseconds)
randomize(convert(Seconds, Nanoseconds, now.toUnix) + now.nanosecond)
{.pop.}