IPerformanceEntry.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using Ryujinx.Audio.Renderer.Common;
  2. namespace Ryujinx.Audio.Renderer.Server.Performance
  3. {
  4. /// <summary>
  5. /// Represents an entry in a performance frame.
  6. /// </summary>
  7. public interface IPerformanceEntry
  8. {
  9. /// <summary>
  10. /// Get the start time of this entry event (in microseconds).
  11. /// </summary>
  12. /// <returns>The start time of this entry event (in microseconds).</returns>
  13. int GetStartTime();
  14. /// <summary>
  15. /// Get the start time offset in this structure.
  16. /// </summary>
  17. /// <returns>The start time offset in this structure.</returns>
  18. int GetStartTimeOffset();
  19. /// <summary>
  20. /// Get the processing time of this entry event (in microseconds).
  21. /// </summary>
  22. /// <returns>The processing time of this entry event (in microseconds).</returns>
  23. int GetProcessingTime();
  24. /// <summary>
  25. /// Get the processing time offset in this structure.
  26. /// </summary>
  27. /// <returns>The processing time offset in this structure.</returns>
  28. int GetProcessingTimeOffset();
  29. /// <summary>
  30. /// Set the <paramref name="nodeId"/> of this entry.
  31. /// </summary>
  32. /// <param name="nodeId">The node id of this entry.</param>
  33. void SetNodeId(int nodeId);
  34. /// <summary>
  35. /// Set the <see cref="PerformanceEntryType"/> of this entry.
  36. /// </summary>
  37. /// <param name="type">The type to use.</param>
  38. void SetEntryType(PerformanceEntryType type);
  39. }
  40. }