File

util/time.lua @ 8957:21ae6cb20dcf

mod_pubsub: Remove feature flag for data persistence since node config is now persistent
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jul 2018 04: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;
}