File

util/time.lua @ 8374:b52663586243

mod_pubsub: Update node config names (should have been in 2abbb01cd756) (thanks lovetox)
author Kim Alvefur <zash@zash.se>
date Mon, 06 Nov 2017 21:03:30 +0100
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;
}