util/timer.lua
changeset 12979 d10957394a3c
parent 11268 2cdcf55c6dd5
equal deleted inserted replaced
12978:ba409c67353b 12979:d10957394a3c
     4 --
     4 --
     5 -- This project is MIT/X11 licensed. Please see the
     5 -- This project is MIT/X11 licensed. Please see the
     6 -- COPYING file in the source package for more information.
     6 -- COPYING file in the source package for more information.
     7 --
     7 --
     8 
     8 
     9 local indexedbheap = require "util.indexedbheap";
     9 local indexedbheap = require "prosody.util.indexedbheap";
    10 local log = require "util.logger".init("timer");
    10 local log = require "prosody.util.logger".init("timer");
    11 local server = require "net.server";
    11 local server = require "prosody.net.server";
    12 local get_time = require "util.time".now
    12 local get_time = require "prosody.util.time".now
    13 local type = type;
    13 local type = type;
    14 local debug_traceback = debug.traceback;
    14 local debug_traceback = debug.traceback;
    15 local tostring = tostring;
    15 local tostring = tostring;
    16 local xpcall = require "util.xpcall".xpcall;
    16 local xpcall = require "prosody.util.xpcall".xpcall;
    17 local math_max = math.max;
    17 local math_max = math.max;
    18 local pairs = pairs;
    18 local pairs = pairs;
    19 
    19 
    20 if server.timer then
    20 if server.timer then
    21 	-- The selected net.server implements this API, so defer to that
    21 	-- The selected net.server implements this API, so defer to that