File

util/time.lua @ 8207:8ea0484871e8

mod_mam: Factor out <stanza-id> stripping so it can be reused in two places
author Kim Alvefur <zash@zash.se>
date Sun, 03 Sep 2017 17:13:30 +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;
}