Stopwatch.Unix.cs 551 B

12345678910111213141516171819
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Diagnostics
  5. {
  6. public partial class Stopwatch
  7. {
  8. private static long QueryPerformanceFrequency()
  9. {
  10. return (long)Interop.Sys.GetTimestampResolution();
  11. }
  12. private static long QueryPerformanceCounter()
  13. {
  14. return (long)Interop.Sys.GetTimestamp();
  15. }
  16. }
  17. }