IClock
#include "crosspad/platform/IClock.hpp"Generated from crosspad/platform/IClock.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.
Recipes that use it: Tempo and transport
Functions
Section titled “Functions”getClock
Section titled “getClock”IClock & getClock()Platform-injected singleton (same pattern as getEventBus())
Used in Tempo and transport.
Declared in crosspad/platform/IClock.hpp:23.
crosspad::IClock
Section titled “crosspad::IClock”Abstract clock interface for portable timing.
Platform implementations:
- ESP-IDF: wraps esp_timer_get_time()
- Arduino: wraps micros()
- Linux: wraps std::chrono
Used in Tempo and transport.
Members
| Member | Description |
|---|---|
getTimeUs | Microseconds since boot. |
Methods
getTimeUs
Section titled “getTimeUs”virtual int64_t getTimeUs() = 0Microseconds since boot.
Used in Tempo and transport.
Declared in crosspad/platform/IClock.hpp:14.