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 setup.py install

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.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file interval-timer-python-0.1.1.tar.gz.

File metadata

  • Download URL: interval-timer-python-0.1.1.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

Hashes for interval-timer-python-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4cbdb9f0fe5f468ca7755e53b29ea765d1db2ba756fe7f73933ecb459a0570df
MD5 4061e6e846a698ebd1845dd561caa2cd
BLAKE2b-256 5bd31ff11ef792e3f37f08b1e42131ce123801f0e2199c43ceebe69874ae3563

See more details on using hashes here.

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