class NatSuite.Recorders.Clocks.RealtimeClock : IClock
This clock provides timestamps that advance realtime.
Creating the Clock
1
/// <summary>
2
/// Create a realtime clock.
3
/// </summary>
4
RealtimeClock ();
Copied!
The clock will initialize its internal clock.
Accessing the Timestamp
1
/// <summary>
2
/// Current timestamp in nanoseconds.
3
/// </summary>
4
long timestamp {get;}
Copied!
Refer to the IClock interface for more information.
Pausing and Resuming Time
1
/// <summary>
2
/// Is the clock paused?
3
/// </summary>
4
bool paused {get;set;}
Copied!
This clock provides a paused property for pausing and resuming its internal clock. This property is useful for implementing pausing functionality for recording.