File

util/time.lua @ 8205:0a3060592db8

man/prosodyctl.markdown: Reflow
author Kim Alvefur <zash@zash.se>
date Sat, 02 Sep 2017 10:05:50 +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;
}