11 lines
217 B
Nim
11 lines
217 B
Nim
|
import std/times
|
||
|
import pkg/upraises
|
||
|
import ./clock
|
||
|
|
||
|
type
|
||
|
SystemClock* = ref object of Clock
|
||
|
|
||
|
method now*(clock: SystemClock): SecondsSince1970 {.upraises: [].} =
|
||
|
let now = times.now().utc
|
||
|
now.toTime().toUnix()
|