Overview
Hardware:
Software:
Resources:
Meta:
Exceptions
TimeoutException
Functions
time_limit(seconds)
time_limit
timeout(func)
timeout
Defines a decorator for a 50ms timeout.
pvp.common.utils.
Bases: Exception
Exception
Defines a decorator for a 50ms timeout. Usage/Test:
@timeout def foo(sleeptime): time.sleep(sleeptime) print(“hello”)
@timeout def foo(sleeptime):
time.sleep(sleeptime)
print(“hello”)