13 lines
290 B
C
13 lines
290 B
C
|
#pragma once
|
||
|
|
||
|
#include <ArduinoLog.h>
|
||
|
|
||
|
struct PerfCounter {
|
||
|
PerfCounter(const char* name) {}
|
||
|
~PerfCounter() {}
|
||
|
/*PerfCounter(const char* name) : start(millis()), name(name) {}
|
||
|
~PerfCounter() {Log.notice("%s: %d", name, millis() - start);}*/
|
||
|
uint16_t start;
|
||
|
const char* name;
|
||
|
};
|