File

util/time.lua @ 9109:31bf4b3abc7f

pubsub.lib: Advertise peristent-items feature when nodes and items are persisted
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Aug 2018 21:36:59 +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;
}