File

util/time.lua @ 8535:b6f3b34ecc03

net.http: Rename handler to conn, for consistency with all our other code
author Matthew Wild <mwild1@gmail.com>
date Fri, 23 Feb 2018 16:21:40 +0000
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;
}