File

util/time.lua @ 8414:7ea3311ca632

util.signal: Use a static array to keep track of pending signals (fixes #1029)
author Kim Alvefur <zash@zash.se>
date Tue, 14 Nov 2017 15:20:14 +0100
parent 7461:72e48bddf617
line wrap: on
line source

-- Import gettime() from LuaSocket, as a way to access high-resolution time
-- in a platform-independent way

local socket_gettime = require "socket".gettime;

return {
	now = socket_gettime;
}