mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 10:20:54 +00:00
Fixed: #889 NLMISC ticksToSecond error on Mac OS X (patch provided by rti)
This commit is contained in:
parent
94b1f202b6
commit
79cc68a5a3
1 changed files with 2 additions and 1 deletions
|
@ -226,9 +226,10 @@ double CTime::ticksToSecond (TTicks ticks)
|
||||||
if (factor == 0.0)
|
if (factor == 0.0)
|
||||||
{
|
{
|
||||||
mach_timebase_info_data_t tbInfo;
|
mach_timebase_info_data_t tbInfo;
|
||||||
|
mach_timebase_info(&tbInfo);
|
||||||
factor = 1000000000.0 * (double)tbInfo.numer / (double)tbInfo.denom;
|
factor = 1000000000.0 * (double)tbInfo.numer / (double)tbInfo.denom;
|
||||||
}
|
}
|
||||||
return double(ticks * factor);
|
return double(ticks / factor);
|
||||||
}
|
}
|
||||||
#endif // NL_OS_WINDOWS
|
#endif // NL_OS_WINDOWS
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue