A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/f1c96d9868c4b9daa05d07bc8dca1b681cad314b below:

[core] Check Win QPC frequency is non-zero · Haivision/srt@f1c96d9 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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