interval-timer for python: Windows:waitabletimer wrapper, Linux:timerfd wrapper
Project description
interval-timer-python
overview
- interval timer library for python
- on Windows: Waitable Timer wrapper
- on Linux: timerfd wrapper
OS
- Windows & Linux
installation
python -m pip install interval-timer-python
usage
import interval_timer
INTERVAL_TIME_MS = 100
itimer = interval_timer.IntervalTimer()
itimer.settime(INTERVAL_TIME_MS)
while True:
print("Hello,World!")
itimer.wait() # periodic blocking
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
File details
Details for the file interval-timer-python-0.1.3.tar.gz
.
File metadata
- Download URL: interval-timer-python-0.1.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7668fb2b97ff20185ab5a946080be3d58844a9188700d36a4228beaf803a36a4 |
|
MD5 | 6f146388a8bd83072d02774ddbe873cb |
|
BLAKE2b-256 | f10882ea71142b3a5c287008cce7814ebf472e69239a3fcc53646f403da0418c |