Software /
code /
prosody
File
util/time.lua @ 7971:cd6f88012f67
util.signal: Restore non-standard GNU "default" behaviour of signal(2)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Mar 2017 16:41:23 +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; }