Skip to main content

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

interval-timer-python-0.1.2.tar.gz (4.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page