Skip to content

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

IClock & getClock()

Platform-injected singleton (same pattern as getEventBus())

Used in Tempo and transport.

Declared in crosspad/platform/IClock.hpp:23.

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

MemberDescription
getTimeUsMicroseconds since boot.

Methods

virtual int64_t getTimeUs() = 0

Microseconds since boot.

Used in Tempo and transport.

Declared in crosspad/platform/IClock.hpp:14.