The timer that user can access to start/end tracking state. A StateTimer::Handle is returned from StateTimerUnit upon allocation.
More...
#include <StateTimerUnit.hpp>
|
| template<class EnumClassT > |
| void | startState (EnumClassT state_enum) |
| | Start timing state.
|
| |
| template<class EnumClassT > |
| void | endState (EnumClassT state_enum) |
| | End timing state.
|
| |
| template<class EnumClassT > |
| void | operator= (EnumClassT state_enum) |
| | Assignment for starting a state in the timer.
|
| |
The timer that user can access to start/end tracking state. A StateTimer::Handle is returned from StateTimerUnit upon allocation.
Definition at line 44 of file StateTimerUnit.hpp.
◆ Handle
| std::shared_ptr<StateTimer> sparta::StateTimerUnit::StateTimer::Handle |
◆ StateSetInfo
| std::shared_ptr<std::unordered_map<uint32_t, uint32_t> > sparta::StateTimerUnit::StateTimer::StateSetInfo |
◆ TimerId
| uint32_t sparta::StateTimerUnit::StateTimer::TimerId |
◆ ~StateTimer()
| sparta::StateTimerUnit::StateTimer::~StateTimer |
( |
| ) |
|
|
inline |
◆ endState()
template<class EnumClassT >
| void sparta::StateTimerUnit::StateTimer::endState |
( |
EnumClassT | state_enum | ) |
|
|
inline |
End timing state.
- Parameters
-
| state_enum | The enum of the state |
Definition at line 103 of file StateTimerUnit.hpp.
◆ operator=()
template<class EnumClassT >
| void sparta::StateTimerUnit::StateTimer::operator= |
( |
EnumClassT | state_enum | ) |
|
|
inline |
Assignment for starting a state in the timer.
- Parameters
-
| The | enum of the state need to be started |
Definition at line 141 of file StateTimerUnit.hpp.
◆ startState()
template<class EnumClassT >
| void sparta::StateTimerUnit::StateTimer::startState |
( |
EnumClassT | state_enum | ) |
|
|
inline |
Start timing state.
- Parameters
-
| state_enum | The enum of the state |
Definition at line 61 of file StateTimerUnit.hpp.
◆ StateTimerPool
| friend class StateTimerPool |
|
friend |
The documentation for this class was generated from the following file: