Skip to main content

Decorator to print how long each decorated function takes to complete.

Project description

timed-functions

Decorator to print how long each decorated function takes to complete.

Example

@timing
def say_hello(name):
    print(f"Hello {name}")

Output:

Hello World
@timing - 'say_hello' function took 0.023 ms

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

timed-functions-0.1.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

timed_functions-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file timed-functions-0.1.0.tar.gz.

File metadata

  • Download URL: timed-functions-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for timed-functions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 122a57798fb8c7c1bc664cf95b5ebaecc6c63974266172cbeb7b33bcdbde5edf
MD5 e1bf3e0e678a431803f8b4bd8634fd37
BLAKE2b-256 715f021f9af85f43d079500c5504d47d9602db5907d86aff42bae18c7f1dd5cc

See more details on using hashes here.

File details

Details for the file timed_functions-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: timed_functions-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for timed_functions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5d4f48b248c0288aa27068f30f17a4d694152369f8fc4bca274131d0c0336f2
MD5 b5b24c1ed4ccb84c828b5f381019ae07
BLAKE2b-256 6e127fef4b2bfa2830ac084051f986a7f6d89f9d40ee0020a9250df87585df38

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