|
Methods defined here:
- __call__(self, time_ns: int = None, value: float = 1.0) -> float
- Submit new data to the rate tracker. If this function is called with
default arguments, the returned value will reflect the rate that this
method is being called in hertz.
- __init__(self, **kwargs) -> None
- Initialize this rate tracker.
- measure(self, value: float = 1.0, timer: vcorelib.math.time.Timer = <vcorelib.math.time.Timer object at 0x7fefd59d98b0>) -> Iterator[NoneType]
- Track the time that the caller's context takes.
- poll(self, time_ns: int = None) -> float
- Siphon accumulated time and update rate tracking.
- reset(self) -> None
- Reset this rate tracker.
- with_dt(self, delta_s: float, value: float = 1.0) -> None
- Update this rate by directly providing the delta-time value.
Readonly properties defined here:
- value
- An accessor for the underlying value.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|