view util/time.lua @ 7582:e080b8b4f3cb

net.http.server: Add luacheck annotations
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 15:21:30 +0200
parents 72e48bddf617
children
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;
}