File

util/time.lua @ 8887:c47f220580fd

Backed out changeset b8c3dbf76a2e (fixes #1162) This is not required by the XEP and has privacy issues.
author Kim Alvefur <zash@zash.se>
date Fri, 08 Jun 2018 16:02:57 +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;
}