No project description provided
Project description
interval-timer
An interval timer iterator that synchronises code execution to within specific time intervals.
The time taken for code execution within each iteration will not affect the interval timing, provided that the execution time is not longer than the interval period. The caller can check if this is the case by checking the missed
attribute on the returned Interval
instance.
Usage
from interval_timer import IntervalTimer
for interval in IntervalTimer(1.0):
print(interval.index, interval.time)
# Do time synchronised task here...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
interval-timer-0.1.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for interval_timer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d212eeb96d512601cd442efacdc3464485cf9ec996dd20e85d9da1cd8962e89b |
|
MD5 | 3234e989eb848d33b36b7dab162aeb1c |
|
BLAKE2b-256 | fdcda7e0307498fe66ede865b837087f23b3a6b147fedb98f347bde739a25d05 |