util/time.lua
author Kim Alvefur <zash@zash.se>
Thu, 05 Apr 2018 17:53:51 +0200
changeset 8724 b773b15fee71
parent 7464 72e48bddf617
permissions -rw-r--r--
util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies

-- 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;
}