-
- Downloads
There was an error fetching the commit references. Please try again later.
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.
Showing
- regtest/basic/rt0/plumed.dat 2 additions, 0 deletionsregtest/basic/rt0/plumed.dat
- src/core/PlumedMain.cpp 31 additions, 29 deletionssrc/core/PlumedMain.cpp
- src/core/PlumedMain.h 5 additions, 4 deletionssrc/core/PlumedMain.h
- src/function/FuncSumHills.cpp 4 additions, 6 deletionssrc/function/FuncSumHills.cpp
- src/tools/Stopwatch.cpp 11 additions, 33 deletionssrc/tools/Stopwatch.cpp
- src/tools/Stopwatch.h 262 additions, 17 deletionssrc/tools/Stopwatch.h
Loading
Please register or sign in to comment