Mercurial > prosody-hg
view util/time.lua @ 8881:a0de4fc4acd5
prosodyctl: Make log level configurable through PROSODYCTL_LOG_LEVEL (useful for debugging)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 07 Jun 2018 11:21:51 +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; }
