Loop rate limiters.
Project description
Loop rate limiters
Simple loop frequency regulators in Python with an API similar to rospy.Rate
.
Installation
pip install loop-rate-limiters
Usage
The Rate
class provides a loop frequency limiter:
from loop_rate_limiters import Rate
from time import perf_counter
rate = Rate(frequency=400.0)
while True:
print(f"Hello from loop at {perf_counter():.3f} s")
rate.sleep()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for loop_rate_limiters-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae3fab1382d9bc1c6c206445c83f3ffcf80ef91051dc05564d6a42f52baf3999 |
|
MD5 | 082b5fe113c716e9e06a8a540ddb50ef |
|
BLAKE2b-256 | febe0f8769a271760c12722df5174c84f0b89d8f79a522db41e58a20fb93f67a |