view util/time.lua @ 8662:a4e63b037a2a

MUC: Catch and log error in case of storage failure in iterator over rooms
author Kim Alvefur <zash@zash.se>
date Thu, 15 Mar 2018 06:19:57 +0100
parents 72e48bddf617
children
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;
}