2020-07-02 19:38:52 +00:00
|
|
|
#pragma once
|
2022-01-27 22:10:59 +00:00
|
|
|
#include <FreeRTOS.h> // declares configUSE_TRACE_FACILITY
|
2020-07-02 19:38:52 +00:00
|
|
|
#include <task.h>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace System {
|
2022-01-27 22:10:59 +00:00
|
|
|
class SystemMonitor {
|
2021-04-24 09:00:45 +00:00
|
|
|
public:
|
2022-01-27 22:10:59 +00:00
|
|
|
void Process();
|
|
|
|
#if configUSE_TRACE_FACILITY == 1
|
2021-04-24 09:00:45 +00:00
|
|
|
private:
|
2021-04-18 17:28:14 +00:00
|
|
|
mutable TickType_t lastTick = 0;
|
2022-01-27 22:10:59 +00:00
|
|
|
#endif
|
2020-07-02 19:38:52 +00:00
|
|
|
};
|
|
|
|
}
|
2022-01-27 22:10:59 +00:00
|
|
|
}
|