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