File

util/time.lua @ 7938:3629f03817f8

mod_websocket: Make open_stream method behave like the one from util.xmppstream
author Kim Alvefur <zash@zash.se>
date Thu, 02 Mar 2017 03:03:25 +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;
}