File

util/time.lua @ 8564:fd41dc4a78e9

util_pubsub_spec: Move util.pubsub import into a setup block
author Kim Alvefur <zash@zash.se>
date Wed, 07 Mar 2018 12:51:27 +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;
}