.\" Copyright (c) 2018-2022, OARC, Inc. .\" All rights reserved. .\" .\" This file is part of dnsjit. .\" .\" dnsjit is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" dnsjit is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with dnsjit. If not, see . .\" .TH dnsjit.lib.clock 3 "1.2.3" "dnsjit" .SH NAME dnsjit.lib.clock \- Clock and time functions .SH SYNOPSIS local clock = require("dnsjit.lib.clock") local sec, nsec = clock.monotonic() .SH DESCRIPTION Functions to get the time from system-wide clocks. .SS Functions .TP .BR Clock.realtime "()" Return the current seconds and nanoseconds (as a list) from the realtime clock. .TP .BR Clock.monotonic "()" Return the current seconds and nanoseconds (as a list) from the monotonic clock. .SH SEE ALSO .BR clock_gettime (2) .SH AUTHORS and CONTRIBUTORS Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC) .LP Maintained by DNS-OARC .LP .RS .I https://www.dns-oarc.net/ .RE .LP .SH BUGS For issues and feature requests please use: .LP .RS \fIhttps://github.com/DNS-OARC/dnsjit/issues\fP .RE .LP For question and help please use: .LP .RS \fIadmin@dns-oarc.net\fP .RE .LP