File

util/time.lua @ 8647:638ff2ad98e6

util.pubsub: Add simple test covering publishing and retrieving an item
author Kim Alvefur <zash@zash.se>
date Wed, 21 Mar 2018 17:03:13 +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;
}