Library for easy timing without time.sleep()
Project description
metronome-loop
Library for easy timing without time.sleep()
Example use
import metronome_loop
def five_sec_prin():
print("five_sec")
one_sec = metronome_loop.metronome(1000, lambda: print("one_sec"))
five_sec = metronome_loop.metronome(5000, five_sec_prin)
ten_sec = metronome_loop.metronome(10000)
while True:
one_sec.loop()
five_sec.loop()
if ten_sec.loop():
print("ten_sec")
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
metronome_loop-0.1.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for metronome_loop-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f71c6fe511eb0c1ff9814e137f3d1776439cd6ae172ceb49544a344c8f6f8d04 |
|
MD5 | 40e99832f252231b11a28ea1f1aeff32 |
|
BLAKE2b-256 | 0bca130c11b155953dde3d2410edf265719b8698fe73226883ca3b151bb780bd |