---
name: "dnsjit.lib.clock"
section: "3"
platform: "linux"
package: "dnsjit"
version: "1.5.0-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dnsjit.lib.clock"
---

# dnsjit.lib.clock(3)

Clock and time functions

## NAME

dnsjit.lib.clock - Clock and time functions

## SYNOPSIS

  local clock = require("dnsjit.lib.clock")\
   local sec, nsec = clock.monotonic()

## DESCRIPTION

Functions to get the time from system-wide clocks.

### Functions

- **Clock.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.

## SEE ALSO

[**clock\_gettime**(2)](/clock_gettime/2.md)

## 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*
