restructerd projekt
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user