How sstaub/timer works
This is a small Arduino timing library: a sketch creates a Timer, controls its running or paused state, and reads elapsed time in milliseconds or microseconds. The public header declares the API; Timer.cpp implements it using Arduino’s millis() and micros() clock functions. The excerpts show those clock calls and API declarations, while the README documents how sketches use the timer. The graph stays focused on runtime behavior; the example sketch is illustrative rather than a separate subsystem.
Main entry points: Timer.h Timer API · Timer.cpp Timer runtime
Components 4
Other components
- Arduino sketch
- Timer API
Timer.h - Timer runtime
Timer.cpp - Arduino clock
Connections 4
- Arduino sketch → Timer API: uses
README.md - Timer runtime → Timer API: implements
Timer.cpp - Timer runtime → Arduino clock: reads ticks
Timer.cpp - Timer API → Arduino sketch: returns elapsed time
README.md