File

util/time.lua @ 7515:9e48299799d8

test_utf8: remove 2 unused variables and an undefined variable [luacheck]
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 23 Jul 2016 20:24:14 +0800
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;
}