summaryrefslogtreecommitdiff
path: root/time/lua-chronos/files/test.lua
blob: 1709fd5a9807e2a93e358749e840f712c62839ba (plain)
1
2
3
4
5
6
7
8
local chronos = require("chronos")


local start = chronos.nanotime()
os.execute("sleep 1")
local stop = chronos.nanotime()

print(("sleep took %s seconds"):format(stop - start))