Skip to content

This module is for finding the execution time of a whole python program

License

Notifications You must be signed in to change notification settings

dis70rt/exetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exetime 3.8

This module is for finding the execution time of a whole program

How to install

$ pip install exetime

Contents:

General Information:

It uses process_time() built-in function in python 3.7 or above. More info on Python Docs

Instruction:

As soon as you import the module, __name__ != '__main__' gets excuted and it is the starting of the program,

(Prefer to import exeTime above all imports)

---Write your code---

After finishing writing your code and successfully compilling, call exetime() or exetime_ms() (At the end of everything)

Use the print() for viewing the output

Example-1:

Example-2:

Note: the delay of time.sleep(5) won't be included, since it only calculate the process time by CPU

Developer and Credit

This module was developed by Saikat

External Credit:

About

This module is for finding the execution time of a whole python program

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages