Skip to content
Snippets Groups Projects
Commit e558166d authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Improved StopWatch class

Changed so that start()/stop()/pause() return *this.
This allows things like
sw.start().stop()

Stopwatch can be initialized with the reference to a log. In this
case, it logs itself at destruction, provided the log is open.

Added Stopwatch::Handler class
It allows writing exception safe stopwatches which automatically
stop when an exception is caught.

Removed unnecessary start/stop in PlumedMain constructor.

Simplified interface: Use default arguments instead of multiple functions.
parent 9bc4323b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment