Skip to main content

Schwi's Utilities

Project description

SchwiCV

Installation

You can install the SchwiCV Tools from PyPI:

pip install schwicv

The package is supported on Python 3.6 and above.

How to use

Timer Lib

from schwicv import Timer

tmr = Timer(0.1)        # Makes Instance of Timer class with 0.1 seconds init time
tmr.remaining_time      # Output of remaining time in seconds
tmr.remaining_time_ms   # Output of remaining time in milliseconds
tmr.execution_time      # Output of execution time since last start in seconds
tmr.execution_time_ms   # Output of execution time since last start in milliseconds
tmr.time_stamp          # Output of actual time stamp as datetime
tmr.time_stamp_str      # Output of actual time stamp yearmonthday-hhmmss-µs example: 20210708-075514-612456
tmr.remaining_percent   # Output of remaining time in percent
tmr.time_over           # True if code needed more or equal 0.1 seconds

tmr.start(1)            # Restart timer with 1 second init time, if re-use instance 

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

schwicv-0.0.8.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file schwicv-0.0.8.tar.gz.

File metadata

  • Download URL: schwicv-0.0.8.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for schwicv-0.0.8.tar.gz
Algorithm Hash digest
SHA256 07f3e073a85e59a7931efff17ab5d9a0ef5f8677c4aa13f43127042fa0cd8957
MD5 900dcacc219ba50a4ab8142bd1de5527
BLAKE2b-256 c701ce59d0545c49449c26709c6db0460d9ed2a37d194c6bfb3247f4bf383086

See more details on using hashes here.

Supported by

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