use explicit double casts for win_high_resolution_clock

This commit is contained in:
Stephen Birarda 2016-03-29 13:13:22 -07:00
parent b134f22cfa
commit 37950e9931

View file

@ -24,7 +24,7 @@ namespace {
win_high_resolution_clock::time_point win_high_resolution_clock::now() {
LARGE_INTEGER count;
QueryPerformanceCounter(&count);
return time_point(duration(static_cast<rep>(double(count.QuadPart) * static_cast<rep>(period::den) / g_Frequency)));
return time_point(duration(static_cast<rep>(double(count.QuadPart) * double(period::den) / double(g_Frequency))));
}
#endif