File

util/time.lua @ 8411:a9e8523a5e73

util.helpers: Handle missing priorities, happens due to wildcard magic in net.http.server (fixes #1044)
author Kim Alvefur <zash@zash.se>
date Wed, 22 Nov 2017 02:34:42 +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;
}