Skip to main content

Python function timing

Project description

functime

install

pip install functime

usage

import functime

func_time(sorted, [5,4,3,2,1])

out:

sorted AVG(1000000): 0.537999us

This moudle provides a simple way to time a function.

  • timer_auto(func, *args, **kwargs): Recommended function.Time func with its arguments followed by func.Call timer(func, times) repeatedly with times set to (10, 100, 1000, ...) so that the total time >= 0.2.Print average run time with readable format.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
functime-0.0.1-py3-none-any.whl (2.2 kB) Copy SHA256 hash SHA256 Wheel py3 Jun 15, 2018
functime-0.0.1.tar.gz (1.7 kB) Copy SHA256 hash SHA256 Source None Jun 15, 2018

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