File

util/time.lua @ 7764:d6b96e42e8e6

mod_websocket: Allow per-host cross_domain_websocket, defaulting to the base URL of the current host
author Kim Alvefur <zash@zash.se>
date Mon, 05 Dec 2016 12:23:51 +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;
}