Skip to content

Commit

Permalink
Fix multiplier.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsimantov committed Jan 25, 2024
1 parent acff9e0 commit 2cd509f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/sample_framework/src/desktop/desktop_app_framework.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ int64_t GetCurrentTimeInMicroseconds() {
now.HighPart = file_time.dwHighDateTime;

// Windows file time has a different offset, year 1601 instead of 1970.
now.QuadPart -= 116444736000000ULL;
now.QuadPart -= 116444736000000000ULL;
// Windows file time is expressed in 100s of nanoseconds.
// To convert to microseconds, multiply x10.
return now.QuadPart * 10LL;
// To convert to microseconds, divide by 10.
return now.QuadPart / 10LL;
}
#endif // defined(_WIN32)

Expand Down

0 comments on commit 2cd509f

Please sign in to comment.