File

util/time.lua @ 7537:a0813737c6fa

mod_s2s: Index session after checking if it exists (fixes traceback in case of a connection without a session having a read timeout)
author Kim Alvefur <zash@zash.se>
date Sun, 07 Aug 2016 20:48:37 +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;
}