view util/time.lua @ 8726:fbb6751dbe85

prosody: Get net.server via requre to avoid relying on globals
author Kim Alvefur <zash@zash.se>
date Thu, 05 Apr 2018 19:34:51 +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;
}