Skip to main content

A lightweight Python utility for measuring execution time between named checkpoints

Project description

TimePix

A lightweight Python utility for measuring execution time between named checkpoints.

Installation

$ pip install timepix

Quick start

from timepix import timepix as tp
import time

tp.set_point("start")
time.sleep(0.5)

tp.set_point("middle")
time.sleep(0.3)

tp.from_point("start") # stdout >> Time from point "start": 0.7988662s.
tp.from_last_point() # stdout >> Time from point "middle": 0.3008336s.
tp.between_points("start", "middle") # stdout >> Time between "start" and "middle" is 0.4981095s.

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

timepix-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

timepix-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file timepix-0.1.1.tar.gz.

File metadata

  • Download URL: timepix-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for timepix-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f244fff96dcaba2d3d50bdc1cbdc218c488103f67421a5a43a719e1066627754
MD5 243fd1d527f2cecffb7ec0ad7b1d769f
BLAKE2b-256 f16be9b38c9e982c6108937118c6276769a2bdc6cf4e0d50dce10ec40e37f113

See more details on using hashes here.

File details

Details for the file timepix-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: timepix-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for timepix-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bbacf37dd08dbb0178611ec1d9d369fd2b259c0458e2873346e577c6f6a6232
MD5 3d70e3ddfda357e5cade1bd714364397
BLAKE2b-256 9b815af9fd195130afff2db68d4e0127cf9d1f2ea83a10b2bd1054c2dda06f07

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