This commit is contained in:
ALIENJACK\alien 2025-01-25 10:31:59 +08:00
commit 058306f0fe

View File

@ -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;
}
}