File

util/time.lua @ 7726:29c20eefa306

util.pubsub: Fix item retrieval by including the item order as it was before using util.cache (thanks walduhu)
author Kim Alvefur <zash@zash.se>
date Sat, 19 Nov 2016 17:34:54 +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;
}