Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1189 from smolt/ticksPerSecOSXFix
Browse files Browse the repository at this point in the history
Fixed ticksPerSec for OSX (in particular iOS)
  • Loading branch information
dnadlinger committed Mar 8, 2015
2 parents 19ea3e3 + bce9c56 commit 428fd45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/time.d
Expand Up @@ -2241,7 +2241,7 @@ private:
{
mach_timebase_info_data_t info;
if(mach_timebase_info(&info) == 0)
_ticksPerSecond = 1_000_000_000L * info.numer / info.denom;
_ticksPerSecond = (1_000_000_000L * info.denom) / info.numer;
}
else version(Posix)
{
Expand Down Expand Up @@ -2492,7 +2492,7 @@ struct TickDuration
if(mach_timebase_info(&info))
ticksPerSec = 0;
else
ticksPerSec = (1_000_000_000 * info.numer) / info.denom;
ticksPerSec = (1_000_000_000L * info.denom) / info.numer;
}
else
ticksPerSec = 1_000_000;
Expand Down

0 comments on commit 428fd45

Please sign in to comment.