view util/time.lua @ 8258:503f424d4f07

prosody.cfg.lua.dist: Update in preparation for 0.10.0 release
author Matthew Wild <mwild1@gmail.com>
date Sat, 23 Sep 2017 13:39:16 +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;
}