time
time()
time_ns()
monotonic()
monotonic_ns()
perf_counter()
perf_counter_ns()
sleep(secs: float)
class TimeInterval
Utility class for timing Codon code
Fields
2
start
int
msg
str
Constructors
1
Methods
3
Special methods
2
timing(msg: str = "")
Example usage:
from time import timing
with timing('foo function'):
foo() # prints runtime of foo
class struct_time
Constructors
1
Properties
9
localtime(secs: int = -1)
gmtime(secs: int = -1)
mktime(t)