Software /
code /
prosody
Diff
util/timer.lua @ 7988:dc758422d896
util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with util.time for precision time
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 20 Mar 2017 00:48:28 +0100 |
parent | 6777:5de6b93d0190 |
child | 7989:5632aa85e0b6 |
line wrap: on
line diff
--- a/util/timer.lua Sat Mar 18 18:50:17 2017 +0100 +++ b/util/timer.lua Mon Mar 20 00:48:28 2017 +0100 @@ -9,7 +9,7 @@ local server = require "net.server"; local math_min = math.min local math_huge = math.huge -local get_time = require "socket".gettime; +local get_time = require "util.time".now local t_insert = table.insert; local pairs = pairs; local type = type;