File

util/time.lua @ 8337:dc4ea43ac463

mod_pubsub: Add support for Create and Configure
author Kim Alvefur <zash@zash.se>
date Wed, 18 Oct 2017 09:08:16 +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;
}