custom-board-bundle-sample-.../firmware/util/timer.h

15 lines
236 B
C++

#pragma once
#include "efitime.h"
class Timer {
public:
void reset();
bool hasElapsedSec(float seconds) const;
bool hasElapsedMs(float ms) const;
bool hasElapsedUs(float us) const;
private:
efitick_t m_lastReset = INT64_MIN;
};