Skip to content
Snippets Groups Projects
Commit a6c27de1 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't time getDelayedCalls

parent ba5d34a8
No related branches found
No related tags found
No related merge requests found
...@@ -158,8 +158,8 @@ def runUntilCurrentTimer(func): ...@@ -158,8 +158,8 @@ def runUntilCurrentTimer(func):
@functools.wraps(func) @functools.wraps(func)
def f(*args, **kwargs): def f(*args, **kwargs):
start = time.time() * 1000
pending_calls = len(reactor.getDelayedCalls()) pending_calls = len(reactor.getDelayedCalls())
start = time.time() * 1000
ret = func(*args, **kwargs) ret = func(*args, **kwargs)
end = time.time() * 1000 end = time.time() * 1000
tick_time.inc_by(end - start) tick_time.inc_by(end - start)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment