Skip to content

Commit

Permalink
Fix my mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Mullin committed Feb 17, 2015
1 parent 606a93e commit 32f6c3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/Timer.cpp
Expand Up @@ -55,7 +55,7 @@ u64 Timer::GetTimeUs()
#elif defined __APPLE__
struct timeval t;
(void)gettimeofday(&t, nullptr);
return ((u64)(t.tv_sec * 1000 + t.tv_usec / 1000));
return ((u64)(t.tv_sec * 1000000 + t.tv_usec));
#else
struct timespec t;
(void)clock_gettime(CLOCK_MONOTONIC, &t);
Expand Down Expand Up @@ -232,7 +232,7 @@ double Timer::GetDoubleTime()
struct timeb tp;
(void)::ftime(&tp);
#elif defined __APPLE__
struct timespec t;
struct timeval t;
(void)gettimeofday(&t, nullptr);
#else
struct timespec t;
Expand Down

0 comments on commit 32f6c3f

Please sign in to comment.