We want to make sure that restarting the timer after pausing is never forgotten, so the pause method has been made private, and the only option is now the paused method. This is used in a with statement like so:
Old Usage:
timer.pause()
print "foo"
timer.start()
New Usage:
with timer.paused():
print "foo"
All printer statements should be wrapped in these with statements.
cc @codyhan94 @Davidpena
We want to make sure that restarting the timer after pausing is never forgotten, so the
pause
method has been made private, and the only option is now thepaused
method. This is used in awith
statement like so:Old Usage:
New Usage:
All printer statements should be wrapped in these with statements.