RealtimeClock

class NatML.Recorders.Clocks.RealtimeClock : IClock

This clock provides timestamps that advance in realtime.

Creating the Clock

/// <summary>
/// Create a realtime clock.
/// </summary>
RealtimeClock ();

The clock will initialize its internal state.

Generating Timestamps

/// <summary>
/// Current timestamp in nanoseconds.
/// </summary>
long timestamp { get; }

Refer to the Generating Timestamps section of the IClock interface for more information.

Pausing and Resuming Time

/// <summary>
/// Is the clock paused?
/// </summary>
bool paused { get; set; }

This clock provides a paused property for pausing and resuming its internal clock. This property is useful for implementing pausing functionality for recording.

Last updated