File

util/time.lua @ 8221:4989a625419a

mod_pubsub: Comment out data persistence for now (weird without config persistence)
author Kim Alvefur <zash@zash.se>
date Wed, 13 Sep 2017 18:46:39 +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;
}