Skip to main content

Measure exec time of a Python function

Project description

elapsed_time

from elapsed_time import elapsed

@elapsed
def test():
    for _ in range(0,10000000):
        pass

test()

>>> Elapsed time: 0.16048717498779297

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

elapsed_time-1.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.

elapsed_time-1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file elapsed_time-1.0.tar.gz.

File metadata

  • Download URL: elapsed_time-1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for elapsed_time-1.0.tar.gz
Algorithm Hash digest
SHA256 a3bc5915b447959999934c9e903794e8e6f07ab386dc6997ace37e1fa0aebb1b
MD5 9e9ee08a3e425877eb62fd31d3d2f55e
BLAKE2b-256 c82175d83cd05916097803976a571daa8f36e6d2e0182f4f67d8c62cf714dc52

See more details on using hashes here.

File details

Details for the file elapsed_time-1.0-py3-none-any.whl.

File metadata

  • Download URL: elapsed_time-1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for elapsed_time-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11d602fd0455235a031fb3caf813a60d86d69590bf556398fbac85e9a50bc4e6
MD5 468eca2a9c498aca45d1344af255d50b
BLAKE2b-256 8b140d9b83ae2435f51d2fb8458fb9c1db20e92ccef7e71f83e4bff2053c259d

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