Skip to content

ldrumm/chronos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

High resolution monotonic timers for Lua

Resources

License

Stars

Watchers

Forks

Packages

No packages published