mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-01-09 06:12:00 +00:00
61ec4275c8
This reverts commit 591be9446a5cee1ce559c87e496fa4d7dab92924.
15 lines
279 B
Nim
15 lines
279 B
Nim
import std/times
|
|
import std/unittest
|
|
|
|
import codex/systemclock
|
|
import ./helpers
|
|
|
|
checksuite "SystemClock":
|
|
test "Should get now":
|
|
let clock = SystemClock.new()
|
|
|
|
let expectedNow = times.now().utc
|
|
let now = clock.now()
|
|
|
|
check now == expectedNow.toTime().toUnix()
|