File

util/time.lua @ 9106:e70b9e8bc443

util.pubsub: Use service.node_defaults in case config.node_defaults was not provided (thanks jonasw)
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Aug 2018 21:30:10 +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;
}