Software /
code /
prosody
File
util/time.lua @ 8186:becb593ed86d
util.sql: Greedily read all rows so we can close queries early (fixes #391)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Aug 2017 18:52:15 +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; }