mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-16 01:34:12 +00:00
10 lines
215 B
Nim
10 lines
215 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()
|