File

util/time.lua @ 9105:e735c9865f42

mod_storage_internal: Only apply truncate if there are more items than requested
author Kim Alvefur <zash@zash.se>
date Sat, 04 Aug 2018 15:44:38 +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;
}