File

util/time.lua @ 8527:0a3dced117f7

MUC: Emit 333 status code on presence as per XEP-0045 1.30 (fixes #1087)
author Jonas Wielicki <jonas@wielicki.name>
date Fri, 23 Feb 2018 14:07:16 +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;
}