Software /
code /
prosody
File
util/time.lua @ 8556:5800f0c7afd6
util.logger: Import globals (fixes on Lua 5.2)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Feb 2018 20:17:21 +0100 (2018-02-28) |
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; }