File

util/time.lua @ 8894:7273fb6af831

util.stanza: Remove redundant check from :text now done in :add_direct_child
author Kim Alvefur <zash@zash.se>
date Fri, 08 Jun 2018 17:44:44 +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;
}