Mercurial > prosody-hg
view util/time.lua @ 8422:6eecf82ccd8e
util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 01 Dec 2017 00:27:37 +0100 |
| parents | 72e48bddf617 |
| children |
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; }
