Skip to content

A small python module containing a decorator that can measure the execution time of any of your functions in seconds

Notifications You must be signed in to change notification settings

NikitaKolotushkin/FunctionRuntimeMeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

FunctionRuntimeMeter

A small python module containing a decorator that can measure the execution time of any of your functions in seconds.

How to use

To measure the speed of your function, you just need to:

  • add the runtimemeter.py file to the project
  • import runtimemeter
  • add @RuntimeMeter to code before calling the required function

Code example:

from runtimemeter import RuntimeMeter


@RuntimeMeter
def WebpageSpeedTest():
    import requests
    webpage = requests.get("https://google.com")

WebpageSpeedTest()

# [*] Execution time: 0:00:00.653771

About

A small python module containing a decorator that can measure the execution time of any of your functions in seconds

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages