File

util/time.lua @ 8125:5f0c642a41a1

mod_pep: Handle disco#info queries to nodes (fixes #805)
author Kim Alvefur <zash@zash.se>
date Mon, 24 Apr 2017 23:27:21 +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;
}