Skip to content

The easiest way to calculate the execution time of any part of the program in Python

License

Notifications You must be signed in to change notification settings

shakib-rahimi/tictoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install

pip install easy_tictoc

Usage

The easiest way to calculate the execution time of any part of the program in Python, sample code:

from tictoc import tic, toc

tic()

<some codes>

toc()       # to show the execution time directly with built-in print function

#-----------------------------------------#

tic()

<some codes 2>

execution_time = toc(False) # do not show, but return as a variable

About

The easiest way to calculate the execution time of any part of the program in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages