Mercurial > prosody-hg
view util/time.lua @ 8463:d81ebb1ef5ce
mod_s2s: Restructure some code
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 05 Dec 2017 13:24:28 +0100 |
| 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; }
