+6
-0
lines changedFilter options
+6
-0
lines changed Original file line number Diff line number Diff line change
@@ -86,6 +86,12 @@ static int64_t get_cpu_frequency()
86
86
if (QueryPerformanceFrequency(&ccf))
87
87
{
88
88
frequency = ccf.QuadPart / 1000000; // counts per microsecond
89
+
if (frequency == 0)
90
+
{
91
+
LOGC(inlog.Warn, log << "Win QPC frequency of " << ccf.QuadPart
92
+
<< " counts/s is below the required 1 us accuracy. Please consider using C++11 timing (-DENABLE_STDCXX_SYNC=ON) instead.");
93
+
frequency = 1; // set back to 1 to avoid division by zero.
94
+
}
89
95
}
90
96
else
91
97
{
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4