MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / Print

Method Print

examples/VulkanBenchmark.cpp:151–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 double total_ms = 0.0;
150
151 void Print(const std::string& name) const {
152 std::cout << "\n[" << name << "]\n";
153 std::cout << "frames=" << frames << "\n";
154 std::cout << std::fixed << std::setprecision(3)
155 << "decode_ms_total=" << decode_ms
156 << " decode_ms_avg=" << (frames ? decode_ms / frames : 0.0) << "\n"
157 << "upload_ms_total=" << upload_ms
158 << " upload_ms_avg=" << (frames ? upload_ms / frames : 0.0) << "\n"
159 << "composite_ms_total=" << composite_ms
160 << " composite_ms_avg=" << (frames ? composite_ms / frames : 0.0) << "\n"
161 << "total_ms=" << total_ms
162 << " fps=" << (total_ms > 0.0 ? (frames * 1000.0) / total_ms : 0.0) << "\n";
163 }
164};
165
166enum class DecodeKind {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected