File

util/time.lua @ 8721:b773b15fee71

util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies
author Kim Alvefur <zash@zash.se>
date Thu, 05 Apr 2018 17:53:51 +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;
}