holoscan::ClockInterface

Beta
View as Markdown

Pure interface defining clock functionality.

This interface defines the core clock operations that all clock implementations must provide.

#include <holoscan/clock.hpp>

Constructors

Destructor

~ClockInterface

virtual holoscan::ClockInterface::~ClockInterface() = default

Methods

time

virtual double holoscan::ClockInterface::time() const

The current time of the clock. Time is measured in seconds.

timestamp

virtual int64_t holoscan::ClockInterface::timestamp() const

The current timestamp of the clock. Timestamps are measured in nanoseconds.

sleep_for

virtual
virtual void holoscan::ClockInterface::sleep_for(
int64_t duration_ns
)

Waits until the given duration has elapsed on the clock.

sleep_until

virtual void holoscan::ClockInterface::sleep_until(
int64_t target_time_ns
)

Waits until the given target time.