File

util/time.lua @ 8257:c24837f57259

mod_server_contact_info: Import from prosody-modules 2c59f2f0c37d (fixes #778)
author Matthew Wild <mwild1@gmail.com>
date Sat, 23 Sep 2017 13:35:33 +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;
}