File

util/time.lua @ 7965:57f98394b830

util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms
author Kim Alvefur <zash@zash.se>
date Tue, 07 Mar 2017 22:33:57 +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;
}