Gevent block time resolution log to ms
This commit is contained in:
parent
f0c10efca6
commit
5c93aadce3
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ def testBlock():
|
||||||
while 1:
|
while 1:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
if time.time() - last_time > 1.1:
|
if time.time() - last_time > 1.1:
|
||||||
logging.debug("Gevent block detected: %s" % (time.time() - last_time - 1))
|
logging.debug("Gevent block detected: %.3fs" % (time.time() - last_time - 1))
|
||||||
num_block += 1
|
num_block += 1
|
||||||
last_time = time.time()
|
last_time = time.time()
|
||||||
gevent.spawn(testBlock)
|
gevent.spawn(testBlock)
|
||||||
|
|
Loading…
Reference in a new issue