We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ddb173 commit b0ace6eCopy full SHA for b0ace6e
libs/openFrameworks/utils/ofFpsCounter.cpp
@@ -50,7 +50,7 @@ void ofFpsCounter::update(time_point<steady_clock> now){
50
return;
51
}
52
diff = now - timestamps.front();
53
- if (diff > 0.0s) {
+ if (std::chrono::duration<double>(diff).count() > 0.0) {
54
fps = static_cast<double>(timestamps.size()) / std::chrono::duration<double>(diff).count();
55
} else {
56
fps = timestamps.size();
0 commit comments