Archived
1
0
forked from MeloNX/MeloNX
This repository has been archived on 2025-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
MeloNX/Ryujinx/OsHle/Objects/TimeISystemClock.cs
2018-02-04 20:08:20 -03:00

16 lines
371 B
C#

using System;
namespace Ryujinx.OsHle.Objects
{
class TimeISystemClock
{
private static DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public static long GetCurrentTime(ServiceCtx Context)
{
Context.ResponseData.Write((long)(DateTime.Now - Epoch).TotalSeconds);
return 0;
}
}
}