monotimes
nimony/lib/std/monotimes.nim
type MonoTime = object ticks: int64
proc getMonoTime(): MonoTimeReturns the current
MonoTimetimestamp.When compiled with the JS backend and executed in a browser, this proc calls
window.performance.now(). See MDN for more information.func ticks(t: MonoTime): int64Returns the raw ticks value from a
MonoTime. This value always uses nanosecond time resolution.func $(t: MonoTime): stringfunc -(a: MonoTime; b: MonoTime): DurationReturns the difference between two
MonoTimetimestamps as aDuration.func +(a: MonoTime; b: Duration): MonoTimeIncreases
abyb.func -(a: MonoTime; b: Duration): MonoTimeReduces
abyb.func <(a: MonoTime; b: MonoTime): boolReturns true if
ahappened beforeb.func <=(a: MonoTime; b: MonoTime): boolReturns true if
ahappened beforebor if they happened simultaneous.func ==(a: MonoTime; b: MonoTime): boolReturns true if
aandbhappened simultaneous.func high(typ: typedesc[MonoTime]): MonoTimeReturns the highest representable
MonoTime.func low(typ: typedesc[MonoTime]): MonoTimeReturns the lowest representable
MonoTime.