Fix Apple platform bug in GetTickFrequency

The numerator and denominator were the wrong way around.
Discovered running renderdoccmd unit tests on M1 Mac Book Air
This commit is contained in:
Jake Turner
2021-02-19 10:09:10 +00:00
committed by Baldur Karlsson
parent 698e22a5ae
commit 1f332f629f
+1 -1
View File
@@ -33,7 +33,7 @@ double Timing::GetTickFrequency()
uint64_t numer = timeInfo.numer;
uint64_t denom = timeInfo.denom;
return ((double)numer / (double)denom) * 1000000.0;
return ((double)denom / (double)numer) * 1000000.0;
}
uint64_t Timing::GetTick()