Software /
code /
prosody
File
util/time.lua @ 9115:fddebfaae7d9
pubsub.lib: Support for publish-options behind a feature flag, 'enable_publish_options'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Aug 2018 00:08:07 +0100 |
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; }