Software / code / prosody
File
util/time.lua @ 8280:9ca0e3128b62
net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 27 Sep 2017 17:34:54 +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; }