File

util/time.lua @ 7898:d8029b2e0f43

mod_tls: Log reasons for not being able to do TLS
author Kim Alvefur <zash@zash.se>
date Wed, 15 Feb 2017 23:03:22 +0100 (2017-02-15)
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;
}