Pal/Environment.Uefi.cs

(完整代码) 736B

namespace System
{
    public static class Environment
    {
        public static unsafe long TickCount64
        {
            get
            {
                EfiRuntimeHost.SystemTable->RuntimeServices->GetTime(out var time, out var capabilities);
                var daysCount = time.Year * 365 + time.Month * 31 + time.Day;
                long secondsCount = daysCount * 24 * 60 * 60 + time.Hour * 60 * 60 + time.Minute * 60 + time.Second;
                long timerTicks = secondsCount * 1000 + time.Nanosecond / 1000_000;

                // Deliberately change time scale.
                // This increase game loop poll iteration, and make game smooth.
                return timerTicks / 1;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。