File

util/time.lua @ 7693:93c041d5bb0b

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 13 Oct 2016 16:31:19 +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;
}