Software /
code /
prosody
File
util/time.lua @ 8378:6a098961bc00
util.sql: Return an error message when a SQL commit fails (LuaDBI doesn't) (Thanks Ge0rG)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Nov 2017 09:26:48 +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; }