time fixed
This commit is contained in:
parent
c782f712a5
commit
9152dcc301
@ -5,8 +5,8 @@ public class UniTimeSpan : ITimeSpan
|
|||||||
{
|
{
|
||||||
public ulong tick;
|
public ulong tick;
|
||||||
double startUs;
|
double startUs;
|
||||||
//double tickDetailus = 16666.666667;
|
double tickDetailus = 16666.666667;
|
||||||
double tickDetailus = 16.666667;//16΢Ãë £¨Ô½Ð¡Ô½¾ö¶¨tick¾«¶ÈԽС£©
|
//double tickDetailus = 16.666667;//16΢Ãë £¨Ô½Ð¡Ô½¾ö¶¨tick¾«¶ÈԽС£©
|
||||||
object tickLock = new object();
|
object tickLock = new object();
|
||||||
|
|
||||||
public void InitStandTime()
|
public void InitStandTime()
|
||||||
@ -54,8 +54,8 @@ public class UniTimeSpan : ITimeSpan
|
|||||||
{
|
{
|
||||||
lock (tickLock)
|
lock (tickLock)
|
||||||
{
|
{
|
||||||
//lpPerformanceCount = (long)tick;
|
lpPerformanceCount = (long)tick;
|
||||||
lpPerformanceCount = (long)(GetRunUs() / tickDetailus);
|
//lpPerformanceCount = (long)(GetRunUs() / tickDetailus);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user