view util/time.lua @ 8789:4ae8dd415e94 0.10.1

mod_websocket: Store the request object on the session for use by other modules
author Matthew Wild <mwild1@gmail.com>
date Tue, 08 May 2018 07:11:33 +0100
parents 72e48bddf617
children
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;
}