This module is for finding the execution time of a whole program
Project description
exetime 3.7
This module is for finding the execution time of a whole program
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,
init() 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:
import exetime
# Your Other
# Imports here
# Write some code
print(exetime.exetime())
Example-2:
import exetime
import time
sum = 0
for x in range(100000):
sum = sum + x
time.sleep(5)
print(exetime.exetime())
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exetime-0.3.7.tar.gz
(3.0 kB
view hashes)