view util/time.lua @ 8137:484ea6201c6c

mod_mam: Use correct variable
author Kim Alvefur <zash@zash.se>
date Thu, 27 Apr 2017 12:41:53 +0200
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;
}