Software /
code /
prosody
File
util/time.lua @ 9124:dcc490f0044d
pubsub.lib: auto-create node with publish-options if autocreation is enabled
author | Jonas Wielicki <jonas@wielicki.name> |
---|---|
date | Sun, 05 Aug 2018 11:44:49 +0200 |
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; }