time
time() -> float
time_ns() -> int
monotonic() -> float
monotonic_ns() -> int
perf_counter() -> float
perf_counter_ns() -> int
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 = "") -> TimeInterval
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, /) -> struct_time
gmtime(secs: int = -1, /) -> struct_time
mktime(t, /) -> int