File

util/time.lua @ 7975:c64ddee9d671

core.moduleapi: Factor out code for getting a scalar config option
author Kim Alvefur <zash@zash.se>
date Wed, 15 Mar 2017 15:07:16 +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;
}