1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00

Fix TickCount() on macOS

This commit is contained in:
redstrate 2021-11-10 05:26:21 -05:00
parent e63e2e0768
commit 33203540ca

View file

@ -66,7 +66,8 @@ char GetChecksum(unsigned int key) {
uint32_t TickCount() {
struct mach_timebase_info convfact;
mach_timebase_info(&convfact);
return mach_absolute_time() * convfact.numer / convfact.denom / 100;
return (mach_absolute_time() * convfact.numer) / (convfact.denom * 1000000);
}
#endif