Software /
code /
prosody
File
util/time.lua @ 7872:3105d35cc2c2
luacheckrc: Allow mutating the global prosody and hosts tables in core/ (luacheck 0.18 adds detection of indirect mutation)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 28 Jan 2017 17:02:28 +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; }