File

util/time.lua @ 8226:3463d82276de

loggingmanager, mod_posix: Replace the old inconsistent log formatting with the new util.format
author Waqas Hussain <waqas20@gmail.com>
date Sun, 10 Sep 2017 13:05:45 -0400
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;
}