Skip to content

Commit

Permalink
Use double in math
Browse files Browse the repository at this point in the history
  • Loading branch information
darbitman committed Jul 3, 2021
1 parent fd83d3c commit 497f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ std::ostream& operator<<(std::ostream& stream, LogTimeRecorder& t) {
int64 elapsedTime_us(const LARGE_INTEGER& begin, const LARGE_INTEGER& end) {
LARGE_INTEGER freq;
QueryPerformanceFrequency(&freq);
return (end.QuadPart - begin.QuadPart) * 1000000 / freq.QuadPart;
return (end.QuadPart - begin.QuadPart) * 1000000.0 / freq.QuadPart;
}
#else
struct LogTimeRecorder {
Expand Down

0 comments on commit 497f1f4

Please sign in to comment.