We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new instance variable cumulative_elapsed_time, and implement a new function like this:
cumulative_elapsed_time
timer = SimpleTimer() with timer: sleep(1) sleep(1) with timer: sleep(1) print(timer.elapsed_time) # 1 second print(timer.cumulative_elapsed_time) # 2 second
It will be useful when we want to evaluate the time of some block of code in a loop.
The text was updated successfully, but these errors were encountered:
add cumulative_elapsed_time and splitted_elapsed_time; refactor examples
eb43ed9
ianlini
No branches or pull requests
Add a new instance variable
cumulative_elapsed_time
, and implement a new function like this:It will be useful when we want to evaluate the time of some block of code in a loop.
The text was updated successfully, but these errors were encountered: