mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't time getDelayedCalls
This commit is contained in:
parent
ba5d34a832
commit
a6c27de1aa
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user