File

util/time.lua @ 7618:5a09c1166d89

configure: Add --compiler-wrapper flag for using things like ccache or distcc
author Kim Alvefur <zash@zash.se>
date Fri, 19 Aug 2016 16:25:15 +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;
}