Skip to main content

A library which allows to measure the execution time of an entire file.

Project description

Timeself

Description

Timeself is intended to measure and print, the caller script, execution time.

Installation

pip install timeself

Usage example

from timeself import timeself


def is_five_divisible(num):
	if num % 5 == 0:
		return True
	else:
		return False


print(is_five_divisible(20))
timeself()  # Must be the last line on the script.

# Output

Execution time: 2.2221007384359837e-05

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

timeself-0.0.1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

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

timeself-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file timeself-0.0.1.tar.gz.

File metadata

  • Download URL: timeself-0.0.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for timeself-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0568cea6f18ac2a472faf81baeced8ec8a33a3afe21e3061237ddefa93b28718
MD5 92fc1679d77fa70a19e49fc44c221557
BLAKE2b-256 a70552a3bb8e7316cca4de5f4bb346b6da41086167e45effa943b24e378d40da

See more details on using hashes here.

File details

Details for the file timeself-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: timeself-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for timeself-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1fea14229cca33d3375b18243c6c5b0495ae895f5f1141f839329c7b47cacf4
MD5 38cdbc4f6f44b1fece49039869658c4e
BLAKE2b-256 bd9bb1141019668c89f797cbf0230f78fe9b8dab0ea75322b859a58e5774f722

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