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 details)
Built Distribution
File details
Details for the file metronome_loop-0.1.0.tar.gz
.
File metadata
- Download URL: metronome_loop-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2814ea1dbea7112a9d4d35d2d3aa23f4b8382d0f74ba4f629b2f3e8051ba151 |
|
MD5 | 4442dff3bbe982f3bc409a9c25710c63 |
|
BLAKE2b-256 | 3bf576b48dfd69adf52543066a7fd868f6b82438d633c0d4a4b738d36bcc1c29 |
File details
Details for the file metronome_loop-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: metronome_loop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f71c6fe511eb0c1ff9814e137f3d1776439cd6ae172ceb49544a344c8f6f8d04 |
|
MD5 | 40e99832f252231b11a28ea1f1aeff32 |
|
BLAKE2b-256 | 0bca130c11b155953dde3d2410edf265719b8698fe73226883ca3b151bb780bd |