File

util/time.lua @ 8202:85a60e863509

prosody, prosodyctl: Fix traceback if ssl config is missing (thanks lookshe and sol)
author Kim Alvefur <zash@zash.se>
date Tue, 29 Aug 2017 15:23:39 +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;
}