mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0022506: Wrong factor for elapsed time mesaured with GetTickCount() in OSD_Timer
Commit details: set the proper factor value.
This commit is contained in:
@@ -73,7 +73,7 @@ static inline Standard_Real GetWallClockTime ()
|
|||||||
LARGE_INTEGER time;
|
LARGE_INTEGER time;
|
||||||
return isOk && QueryPerformanceCounter (&time) ?
|
return isOk && QueryPerformanceCounter (&time) ?
|
||||||
(Standard_Real)time.QuadPart / (Standard_Real)freq.QuadPart :
|
(Standard_Real)time.QuadPart / (Standard_Real)freq.QuadPart :
|
||||||
0.000001 * GetTickCount();
|
0.001 * GetTickCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* WNT */
|
#endif /* WNT */
|
||||||
|
Reference in New Issue
Block a user