NatCorder
Search
K

IClock

interface NatML.Recorders.Clocks.IClock
This interface provides an easy way to generate timestamps during recording. The interface exposes a single property, the timestamp:

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.
Clocks are important for synchronizing video and audio tracks.
All clocks are thread safe, so they can be used simultaneously from multiple threads.