aboutsummaryrefslogtreecommitdiffstats
path: root/util/time.lua
blob: 84cff877afff323679983559b503fc3997ccd88a (plain)
1
2
3
4
5
6
7
8
-- 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;
}