From 9152dcc301bfff92920568837347b80957d64804 Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Sat, 25 Jan 2025 10:27:39 +0800 Subject: [PATCH] time fixed --- .../Emulator/MameEmulator/UniInterface/UniTimeSpan.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Emulator/MameEmulator/UniInterface/UniTimeSpan.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Emulator/MameEmulator/UniInterface/UniTimeSpan.cs index aeab7d5f..e6a4cdcb 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Emulator/MameEmulator/UniInterface/UniTimeSpan.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Emulator/MameEmulator/UniInterface/UniTimeSpan.cs @@ -5,8 +5,8 @@ public class UniTimeSpan : ITimeSpan { public ulong tick; double startUs; - //double tickDetailus = 16666.666667; - double tickDetailus = 16.666667;//16微秒 (越小越决定tick精度越小) + double tickDetailus = 16666.666667; + //double tickDetailus = 16.666667;//16微秒 (越小越决定tick精度越小) object tickLock = new object(); public void InitStandTime() @@ -54,8 +54,8 @@ public class UniTimeSpan : ITimeSpan { lock (tickLock) { - //lpPerformanceCount = (long)tick; - lpPerformanceCount = (long)(GetRunUs() / tickDetailus); + lpPerformanceCount = (long)tick; + //lpPerformanceCount = (long)(GetRunUs() / tickDetailus); return true; } }