High resolution monotonic timers for Lua
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rockspecs
src
.gitignore
LICENSE
README.md
update_rockspec.lua

README.md

chronos

High resolution monotonic timers for Lua

do
    local chronos = require("chronos")


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

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