File

util/time.lua @ 7771:2b288dab781a

mod_blocklist: Make the 'false' metadata field a table so we can store timestamps and other useful data
author Kim Alvefur <zash@zash.se>
date Thu, 08 Dec 2016 18:13:56 +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;
}