TimeISystemClock.cs 371 B

12345678910111213141516
  1. using System;
  2. namespace Ryujinx.OsHle.Objects
  3. {
  4. class TimeISystemClock
  5. {
  6. private static DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
  7. public static long GetCurrentTime(ServiceCtx Context)
  8. {
  9. Context.ResponseData.Write((long)(DateTime.Now - Epoch).TotalSeconds);
  10. return 0;
  11. }
  12. }
  13. }