File

util/time.lua @ 8923:ddd98e262519

prosodyctl: Only check for s2s if mod_s2s is enabled (fixes #1031)
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 23 Jun 2018 16:15:36 +0200
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;
}