view util/time.lua @ 7856:bd5008a7dcbd

mod_mam: Use correct local name for util.jid.prepped_split
author Kim Alvefur <zash@zash.se>
date Mon, 23 Jan 2017 19:32:07 +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;
}