File

util/time.lua @ 8138:cb605fb60e32

mod_storage_sql: Fix logic error introduced by variable rename in aa9f198cb3c9 (thanks waqas)
author Matthew Wild <mwild1@gmail.com>
date Sun, 30 Apr 2017 10:44:53 +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;
}