11 lines
277 B
C++
11 lines
277 B
C++
#include "debugTimes.h"
|
|
|
|
DebugTimes::DebugTimes() {
|
|
this->startTime = millis();
|
|
}
|
|
|
|
void DebugTimes::stop(const char* name, uint16_t minTime) {
|
|
uint64_t time = millis() - this->startTime;
|
|
if (time > minTime)
|
|
Serial.printf("%s needs %llu ms\n", name, time);
|
|
} |