RateMeter¶
-
class
rate_meter.RateMeter(interval=1.0)[source]¶ This class allows to measure the rate of an iterative code. The rate value is calculated taking into account only the last interval seconds, so the measure can calculate the measured rate in real time.
-
__init__(interval=1.0)[source]¶ Returns a
RateMeterinstance.Parameters: interval – Interval value for rate measurement, in seconds. Rate will be calculated over the last interval seconds.
-