File

util/time.lua @ 9010:3c5ddd53fe50

MUC: Log a debug message when a non-persistent room becomes empty and is destroyed
author Kim Alvefur <zash@zash.se>
date Wed, 11 Jul 2018 02:25:07 +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;
}