VasiliyBologov / Runtime-counter-Decorator

A decorator that counts the execution time of a function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runtime-counter-Decorator

A decorator that counts the execution time of a function

GitHub top language Runtime-counter-Decorator license Twitter URL

Usage

@RunTimeCount
def YouFunction():
    #to Do Something
YouFunction()

Response

Start Def in: 12:33:57
>>>Your Function Do something
End Def in: 12:34:01
Runtime 0.0 hour 0.0 min  4.017009 sec
Runtime  4.017009 sec

About

A decorator that counts the execution time of a function

License:MIT License


Languages

Language:Python 100.0%