Stop watch that automatically adds a timing event to a profiler at destruction.
More...
#include <Profiler.hpp>
Stop watch that automatically adds a timing event to a profiler at destruction.
◆ ScopeWatch()
| sat::ScopeWatch::ScopeWatch |
( |
Profiler & |
profiler, |
|
|
std::string |
eventName |
|
) |
| |
CTor. Starts the stop watch
- Parameters
-
| profiler | profiler where the event is registered |
| eventName | name of the event |
◆ ~ScopeWatch()
| sat::ScopeWatch::~ScopeWatch |
( |
| ) |
|
DTor. Stops the stop watch and adds the event to the scheduler
◆ elapsed()
template<typename T >
| auto sat::StopWatch::elapsed |
( |
| ) |
const |
|
inlineinherited |
Get the number of elapsed time units
- Template Parameters
-
- Returns
- number of time units since call to start
◆ getTiming()
Get the timing event since the last call to start and the time of the call
- Returns
- TimingEvent with start point set to the last call to start() and end event the current time
◆ start()
| void sat::StopWatch::start |
( |
| ) |
|
|
inherited |
Resets the start event to the current time
The documentation for this class was generated from the following files: