Software / code / prosody
File
util/time.lua @ 8345:850c433eb862
hgignore: Stop ignoring *.report, these are no longer created since switching to busted
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 22 Oct 2017 14:39:59 +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; }