logos-storage-nim/codex/systemclock.nim
Jacek Sieka 0062fd5e2b
chore: drop usage of upraises
No longer needed with newer nim - also removes `gcsafe` from `async`
(it's implied)
2025-11-17 11:08:57 +01:00

9 lines
193 B
Nim

import std/times
import ./clock
type SystemClock* = ref object of Clock
method now*(clock: SystemClock): SecondsSince1970 {.raises: [].} =
let now = times.now().utc
now.toTime().toUnix()