File

util/time.lua @ 8295:8e82aa858ed2

mod_pubsub: Correct traceback in loop invocation (data is the iterator, does not return one)
author Kim Alvefur <zash@zash.se>
date Sun, 08 Oct 2017 00:35:09 +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;
}