mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-09 18:36:29 +00:00
61ec4275c8
This reverts commit 591be9446a5cee1ce559c87e496fa4d7dab92924.
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()
|