Skip to main content

Multi-functional Stopwatch for Python

Project description

pystopwatch

Multi-functional Simple Stopwatch for Python.

  • Multiple Stopwatch by Tags
  • Manage elapsed times by tags
  • Example of use : profiling python codes(latency by functions, ...)

Install

$ pip install pystopwatch2

Usage

from pystopwatch import PyStopwatch

w = PyStopwatch()
w.start(tag='a')
time.sleep(1)
w.pause('a')
e = w.get_elapsed('a')

# e = 1.0xxx

e.clear('a')

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

pystopwatch2-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystopwatch2-0.1.0-py2-none-any.whl (6.8 kB view details)

Uploaded Python 2

File details

Details for the file pystopwatch2-0.1.0.tar.gz.

File metadata

  • Download URL: pystopwatch2-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

File hashes

Hashes for pystopwatch2-0.1.0.tar.gz
Algorithm Hash digest
SHA256 158ae3ed5e8ef358f0659b9a94f3ae516905d557572b195ae52c703f71f0d9d0
MD5 c67fca2ed9aa3e43a9bcacf1e1cb6739
BLAKE2b-256 ead71b1bad317ba7d8df9023fe1d242007a120df804a394d56d2c6793a4016db

See more details on using hashes here.

File details

Details for the file pystopwatch2-0.1.0-py2-none-any.whl.

File metadata

  • Download URL: pystopwatch2-0.1.0-py2-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

File hashes

Hashes for pystopwatch2-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 d40f2024dfea6c875b4f6121dee45713eff8d31a81a3068d1f6e49d7772a297f
MD5 0768f02a743bbc8b8a7acdd325eaffb3
BLAKE2b-256 6b938fb50ff666daf4864f4907d431378ab39e7b471fb84f4c6bb89bf261c178

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