Mercurial > prosody-hg
view util/time.lua @ 8714:e1c4bdb2cd25
prosody: Use prosody.log instead of _G.log because it looks nicer
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Apr 2018 16:00:00 +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; }
