logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dnsjit.lib.clock - Clock and time functions

Authors And Contributors

       Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

       Maintained by DNS-OARC

              https://www.dns-oarc.net/

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()

See Also