#include <Stopwatch.h>
|
class | Handler |
| Auxiliary class for handling exception-safe start/pause and start/stop. More...
|
|
class | Watch |
| Class to store a single stopwatch. More...
|
|
|
std::ostream & | log (std::ostream &os) const |
| Log over stream os. More...
|
|
◆ Stopwatch() [1/2]
PLMD::Stopwatch::Stopwatch |
( |
| ) |
|
|
explicitdefault |
◆ Stopwatch() [2/2]
PLMD::Stopwatch::Stopwatch |
( |
Log & |
log | ) |
|
|
inlineexplicit |
◆ ~Stopwatch()
PLMD::Stopwatch::~Stopwatch |
( |
| ) |
|
◆ log()
std::ostream & PLMD::Stopwatch::log |
( |
std::ostream & |
os | ) |
const |
|
private |
◆ pause()
Pause timer named "name".
◆ start()
Start timer named "name".
◆ startPause()
Start with exception safety, then pause.
Starts the Stopwatch and returns an object that, when goes out of scope, pauses the watch. This allows Stopwatch to be started and paused in an exception safe manner.
◆ startStop()
Start with exception safety, then stop.
Starts the Stopwatch and returns an object that, when goes out of scope, stops the watch. This allows Stopwatch to be started and stopped in an exception safe manner.
◆ stop()
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Stopwatch & |
sw |
|
) |
| |
|
friend |
Dump all timers on an ostream.
◆ mylog
Pointer to a log file.
If set, the stopwatch is logged in its destructor.
◆ watches
std::unordered_map<std::string,Watch> PLMD::Stopwatch::watches |
|
private |
List of watches.
Each watch is labeled with a string.
The documentation for this class was generated from the following files: