Comparison

util/throttle.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 8245:9499db96c032
comparison
equal deleted inserted replaced
7987:b3ee697158b5 7988:dc758422d896
1 1
2 local gettime = require "socket".gettime; 2 local gettime = require "util.time".now
3 local setmetatable = setmetatable; 3 local setmetatable = setmetatable;
4 local floor = math.floor; 4 local floor = math.floor;
5 5
6 local _ENV = nil; 6 local _ENV = nil;
7 7