7using System.Diagnostics;
8using System.Runtime.CompilerServices;
17 #region --Client API--
25 [MethodImpl(MethodImplOptions.Synchronized)]
28 var time = stopwatch.Elapsed.Ticks * 100L;
29 if (!stopwatch.IsRunning)
40 [MethodImpl(MethodImplOptions.Synchronized)]
41 get => !stopwatch.IsRunning;
42 [MethodImpl(MethodImplOptions.Synchronized)]
43 set => (value ? (Action) stopwatch.Stop : stopwatch.Start)();
51 stopwatch =
new Stopwatch();
56 private readonly Stopwatch stopwatch;
Realtime clock for generating timestamps
bool paused
Is the clock paused?
long timestamp
Current timestamp in nanoseconds. The very first value reported by this property will always be zero.
RealtimeClock()
Create a realtime clock.
Clock for generating recording timestamps. Clocks are important for synchronizing audio and video tra...