Skip to main content

Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.

Project description

TimeSpy ⏱

Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.

Installation

pip install timespy

Usage

from timespy import profile

@profile
def my_function():
    import time
    time.sleep(1)

my_function()
print(f"Execution time: {my_function.exec_time:.6f}s")

License

TimeSpy is licensed under the GNU General Public License v3 (GPLv3). See LICENSE for more details.

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

timespy-0.1.1.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.

timespy-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timespy-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for timespy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c9fd522a0685c263948603a5f29b4240c82389ffeec1eeb4a691acc23e81b8dc
MD5 f2459924c6b64e0047077a10c66a2c23
BLAKE2b-256 8b502f2fa64b6f333bf8e177106d3f8afeaade6780ba384cfaa448496faaa174

See more details on using hashes here.

File details

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

File metadata

  • Download URL: timespy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for timespy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52822af8b0f862d1b6ddf639fd20b222899bd479eee0f017defdb9a428943649
MD5 2a72706c0bd5a002de0d5b3b799d744d
BLAKE2b-256 7593a09917815a042fbab74b19feb9e7c9933d8b1dec90330a52a1ef4c235503

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