mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-19 17:30:02 +00:00
11 lines
217 B
Nim
11 lines
217 B
Nim
import std/times
|
|
import pkg/chronos
|
|
import ./clock
|
|
|
|
type
|
|
SystemClock* = ref object of Clock
|
|
|
|
method now*(clock: SystemClock): Future[SecondsSince1970] {.async.} =
|
|
let now = times.now().utc
|
|
now.toTime().toUnix()
|