Software /
code /
prosody
File
util/time.lua @ 7688:88ad2d5bcf80
net.server_event: Restore destruction of socket on read timeout (lost since e67891ad18d6) (thanks Ge0rG)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Oct 2016 14:07:07 +0200 |
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; }