Fix one missing nit and improve one comment
This commit is contained in:
parent
5f447247dd
commit
e2e83fc5db
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ namespace Ryujinx.HLE.HOS.Services.Bpc
|
||||||
|
|
||||||
public static ResultCode GetExternalRtcValue(out ulong rtcValue)
|
public static ResultCode GetExternalRtcValue(out ulong rtcValue)
|
||||||
{
|
{
|
||||||
// TODO: emulate MAX77620/MAX77812
|
// TODO: emulate MAX77620/MAX77812 RTC
|
||||||
DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||||
|
|
||||||
rtcValue = (ulong)(DateTime.Now.ToUniversalTime() - unixEpoch).TotalSeconds;
|
rtcValue = (ulong)(DateTime.Now.ToUniversalTime() - unixEpoch).TotalSeconds;
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
struct SteadyClockTimePoint
|
struct SteadyClockTimePoint
|
||||||
{
|
{
|
||||||
public long TimePoint;
|
public long TimePoint;
|
||||||
public UInt128 ClockSourceId;
|
public UInt128 ClockSourceId;
|
||||||
|
|
||||||
public ResultCode GetSpanBetween(SteadyClockTimePoint other, out long outSpan)
|
public ResultCode GetSpanBetween(SteadyClockTimePoint other, out long outSpan)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue