mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 03:25:13 +00:00
16 lines
No EOL
371 B
C#
16 lines
No EOL
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;
|
|
}
|
|
}
|
|
} |