File

util/time.lua @ 9135:c68d62ae9cb7

pubsub.lib: correctly emit data form fields
author Jonas Wielicki <jonas@wielicki.name>
date Mon, 06 Aug 2018 16:27:05 +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;
}