Mercurial > prosody-hg
comparison 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 |
| parents | 5de6b93d0190 |
| children | 5632aa85e0b6 |
comparison
equal
deleted
inserted
replaced
| 7987:b3ee697158b5 | 7988:dc758422d896 |
|---|---|
| 7 -- | 7 -- |
| 8 | 8 |
| 9 local server = require "net.server"; | 9 local server = require "net.server"; |
| 10 local math_min = math.min | 10 local math_min = math.min |
| 11 local math_huge = math.huge | 11 local math_huge = math.huge |
| 12 local get_time = require "socket".gettime; | 12 local get_time = require "util.time".now |
| 13 local t_insert = table.insert; | 13 local t_insert = table.insert; |
| 14 local pairs = pairs; | 14 local pairs = pairs; |
| 15 local type = type; | 15 local type = type; |
| 16 | 16 |
| 17 local data = {}; | 17 local data = {}; |
