File

util/time.lua @ 8910:28ec1e024379

mod_s2s: Log a message before trying the next SRV record This was the only spot where it did `ip_hosts = nil` without logging
author Kim Alvefur <zash@zash.se>
date Thu, 14 Jun 2018 16:13:56 +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;
}