File

util/time.lua @ 7691:a5ad858f3a93

net.server_epoll: Check that connection still exists after callback, fixes traceback when closed
author Kim Alvefur <zash@zash.se>
date Sun, 09 Oct 2016 21:48:53 +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;
}