File

util/time.lua @ 8838:6d4b0895f76d

MUC: ensure that x/item/@jid is always a bare JID
author Jonas Wielicki <jonas@wielicki.name>
date Thu, 17 May 2018 17:12:07 +0200 (2018-05-17)
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;
}