Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 445 Bytes

taskstat.rst

File metadata and controls

24 lines (16 loc) · 445 Bytes

TaskStat

Example of use:

#include <Services/Profiling/TaskStat.h>

Profiling::TaskStat taskStat(Serial);
Timer statTimer;

void init()
{
   ...

   // Set up timer to print task information to Serial terminal every 2 seconds
   statTimer.initializeMs<2000>(InterruptCallback([]() { taskStat.update(); }));
   statTimer.start();
}
.. doxygenclass:: Profiling::TaskStat
   :members: