Timer: Add LOG_DELAY_EXPIRE timer type

This commit is contained in:
Arne Welzel 2023-11-11 17:56:50 +01:00
parent 56b6219fb9
commit 2d0fa13e18
2 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,7 @@ const char* TimerNames[] = {
"TimerMgrExpireTimer", "TimerMgrExpireTimer",
"ThreadHeartbeat", "ThreadHeartbeat",
"UnknownProtocolExpire", "UnknownProtocolExpire",
"LogDelayExpire",
}; };
const char* timer_type_to_string(TimerType type) { return TimerNames[type]; } const char* timer_type_to_string(TimerType type) { return TimerNames[type]; }

View file

@ -49,8 +49,9 @@ enum TimerType : uint8_t {
TIMER_TIMERMGR_EXPIRE, TIMER_TIMERMGR_EXPIRE,
TIMER_THREAD_HEARTBEAT, TIMER_THREAD_HEARTBEAT,
TIMER_UNKNOWN_PROTOCOL_EXPIRE, TIMER_UNKNOWN_PROTOCOL_EXPIRE,
TIMER_LOG_DELAY_EXPIRE,
}; };
constexpr int NUM_TIMER_TYPES = int(TIMER_UNKNOWN_PROTOCOL_EXPIRE) + 1; constexpr int NUM_TIMER_TYPES = int(TIMER_LOG_DELAY_EXPIRE) + 1;
extern const char* timer_type_to_string(TimerType type); extern const char* timer_type_to_string(TimerType type);