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


Release history Release notifications

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for timeself, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size timeself-0.0.1-py3-none-any.whl (2.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size timeself-0.0.1.tar.gz (1.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page