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.restart()           # Restarts the timer with previous init time

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for schwicv-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8a355f33c57af051fb09b9e24cde4f1901eee4215e8f14aa892c3c051e85a4cb
MD5 d0301309c2fa5cbf136a024f9442924d
BLAKE2b-256 8aaee50c1caeeaef747e3c01b511aef6411b5dbb4a6d91b8692cf5c3ad455553

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