dnsjit.lib.clock - Clock and time functions
Contents
Bugs
For issues and feature requests please use:
https://github.com/DNS-OARC/dnsjit/issues
For question and help please use:
admin@dns-oarc.net
dnsjit 1.5.0 dnsjit.lib.clock(3)
Description
Functions to get the time from system-wide clocks.
FunctionsClock.realtime()
Return the current seconds and nanoseconds (as a list) from the realtime clock.
Clock.monotonic()
Return the current seconds and nanoseconds (as a list) from the monotonic clock.
Name
dnsjit.lib.clock - Clock and time functions
See Also
clock_gettime(2)
Synopsis
local clock = require("dnsjit.lib.clock")
local sec, nsec = clock.monotonic()
