view util/time.lua @ 7795:03081bd5c5bb

net.server_epoll: Add the 'once' argument to loop for parity with server_select
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jan 2017 19:32:54 +0100
parents 72e48bddf617
children
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;
}