File

util/time.lua @ 9004:50a0f405e6c9

util_pubsub_spec: Add test for #1082
author Kim Alvefur <zash@zash.se>
date Tue, 10 Jul 2018 00:22: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;
}