view util/time.lua @ 7763:c5ce14539fc4

mod_websocket: Add the base URL of each host module is enabled on to 'cross_domain_websocket'
author Kim Alvefur <zash@zash.se>
date Mon, 05 Dec 2016 12:23:41 +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;
}