File

util/time.lua @ 7568:4f7990902874

ejabberdsql2prosody: rename variable 't' to prevent shadowing upvalues [luacheck] Let's make the result of parseFile() have a more descriptive name.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 12 Aug 2016 13:51:38 +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;
}