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:
parent
e63e2e0768
commit
33203540ca
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue