27#define ARTIM_NUM_HIST (10)
37 unsigned int loopTime;
41 unsigned long loopStartTime;
45 unsigned long loopEndTime;
55 unsigned long numLoadSamples;
69 unsigned int loadHistogram[ARTIM_NUM_HIST];
73 unsigned int overloadHistogram;
98 Artim(
unsigned int loopTime_ms);
Arduino Runtime Control and Measurement class.
Definition: Artim.h:30
float getAvgLoad(void)
API function that provides the average load in %.
Definition: Artim.cpp:131
unsigned int getLoadHist(byte rangeIdx)
API function that provides the histogram data for a range provided as input parameter.
Definition: Artim.cpp:149
void loopEnd(void)
loopEnd needs to be invoked as very last operation of the loop.
Definition: Artim.cpp:44
float getMinLoad(void)
API function that provides the minimum load in %.
Definition: Artim.cpp:137
float getMaxLoad(void)
API function that provides the maximum load in %.
Definition: Artim.cpp:143
unsigned int getOverloadHist(void)
API function that provides the overload historgram data.
Definition: Artim.cpp:165
void loopBegin(void)
loopBegin needs to be invoked as very first operation of the loop.
Definition: Artim.cpp:36