File

util/time.lua @ 8420:fb27aff6d491

util.signal: Fix loop (fixes #1047) A pre-commit version probably started with i = nsig and counted down, then an incomplete change to counting up was done
author Kim Alvefur <zash@zash.se>
date Thu, 30 Nov 2017 19:35:35 +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;
}