view util/time.lua @ 8173:3ff99d49082f

mod_storage_internal: Return a noop iterator if archive is empty (fixes #920)
author Kim Alvefur <zash@zash.se>
date Wed, 05 Jul 2017 05:44:56 +0200
parents 72e48bddf617
children
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;
}