IClock
namespace VideoKit.Clocks {
/// <summary>
/// Clock for generating recording timestamps.
/// </summary>
interface IClock { ... }
}
Instances of the IClock
interface are used to generate timestamps for recordings.
Generating Timestamps
/// <summary>
/// Current timestamp in nanoseconds.
/// </summary>
long timestamp { get; }
The timestamp
reports the clock's elapsed time in nanoseconds.
The very first timestamp
reported by a clock will always be zero.