Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dalathegreat/Battery-Emulator
/ MyTimer
Method
MyTimer
Software/src/devboard/utils/timer.cpp:3–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#include
"timer.h"
2
3
MyTimer::MyTimer(unsigned long interval) : interval(interval) {
4
previous_millis = millis();
5
}
6
7
bool MyTimer::elapsed(void) {
8
unsigned long current_millis = millis();
Callers
nothing calls this directly
Calls
1
millis
Function · 0.85
Tested by
no test coverage detected