Files
Nim/tests/stdlib/tcputime.nim
Miran 38b391ff62 merge stdlib tests (#9439)
(cherry picked from commit 9fb212cfdf)
2018-11-01 17:52:04 +01:00

12 lines
151 B
Nim

import times, os
var e = epochTime()
var c = cpuTime()
os.sleep(1000)
e = epochTime() - e
c = cpuTime() - c
echo "epochTime: ", e, " cpuTime: ", c