File

util/time.lua @ 8273:ca881f4bc415

prosody.cfg.lua.dist: Correct mod_websockets to mod_websocket
author Kim Alvefur <zash@zash.se>
date Wed, 27 Sep 2017 05:27:22 +0200 (2017-09-27)
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;
}