Closed jsiirola closed 4 years ago
@michaelbynum: Yes. You can use toc()
. It returns the time it prints, and if you set up the timer to be a cumulative timer, then the time that is returned is the current cumulative time. If you want to get the time without actually printing anything, then toc("")
will do what you want.
Fixes: N/A
Summary/Motivation:
This adds the ability to start/stop a TicTicTimer. If the timer was stopped and restarted, then the logged message will also include the number of times the timer was explicitly started.
Changes proposed in this PR:
TicTicTimer.start()
andTicTicTimer.stop()
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: