IClock.cs 541 B

1234567891011121314151617181920
  1. /*
  2. * NatCorder
  3. * Copyright (c) 2020 Yusuf Olokoba.
  4. */
  5. namespace NatSuite.Recorders.Clocks {
  6. /// <summary>
  7. /// Clock for generating recording timestamps.
  8. /// Clocks are important for synchronizing audio and video tracks when recording with audio.
  9. /// Clocks are thread-safe, so they can be used on multiple threads simultaneously.
  10. /// </summary>
  11. public interface IClock {
  12. /// <summary>
  13. /// Current timestamp in nanoseconds.
  14. /// </summary>
  15. long timestamp { get; }
  16. }
  17. }