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 timer

@timer
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.2.0.tar.gz (2.2 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.2.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timespy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0468aa0be6f19220fd1696e1bae33948b9b7f755b2603b00e3976902876f3544
MD5 b36114f054676b59767c51a1246a5164
BLAKE2b-256 e0c31649d9529e4c10c0e1d9d1d93beefdd14c66d677d703eb810511da7ec359

See more details on using hashes here.

File details

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

File metadata

  • Download URL: timespy-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b51014f6052750c7251bd6823fb4b83dc2bf8dd0875b07ea5742d0b41f2da465
MD5 17e14a8044c08a576a0ce14c56c5e181
BLAKE2b-256 bf8bb10828eda1ae850974af84969743e61c00e2c6815ed7de42928b705d9933

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