File

util/time.lua @ 8740:5dc8f509496c

mod_register_limits: Promote log message about inability to apply black/whitelists to a warning
author Kim Alvefur <zash@zash.se>
date Tue, 10 Apr 2018 01:32:52 +0200
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;
}