Mercurial > prosody-hg
view util/time.lua @ 8926:89f6b2a2bec3
MUC: Measure cache hits and misses
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 23 Jun 2018 18:59:21 +0200 |
| 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; }
