ericcfields / pytictoc

MATLAB style tic and toc timing for Python
Other
7 stars 2 forks source link

Create an object automatically #3

Open parthe opened 1 year ago

parthe commented 1 year ago

This saves a line in every main file, and usage becomes

from pytictoc import timer
# main code

instead of

from pytictoc import TicToc
timer=TicToc()
# main code