Times.cs 424 B

123456789101112131415161718
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
  5. {
  6. public sealed class Times
  7. {
  8. private static long NanosecondsPerTick = 100L;
  9. public static long NanoTime()
  10. {
  11. return DateTime.UtcNow.Ticks * NanosecondsPerTick;
  12. }
  13. }
  14. }
  15. #pragma warning restore
  16. #endif