File

util/time.lua @ 8822:4afa77e0d2b0

mod_pubsub: Fix syntax error
author Kim Alvefur <zash@zash.se>
date Wed, 23 May 2018 01:00:01 +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;
}