File

util/time.lua @ 8685:2548111e71d6

util.timer: Move sleep() here from util.async This is to solve a indirect dependency issue where net.server was initialized before the config was read
author Kim Alvefur <zash@zash.se>
date Fri, 23 Mar 2018 21:18:15 +0100
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;
}