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

Function time_trial

tests/Benchmark.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42using Trial = pair<string, TrialFunc>;
43
44template <typename Func> double time_trial(const string &name, Func func) {
45 auto start = Clock::now();
46 func();
47 auto elapsed =
48 chrono::duration_cast<chrono::milliseconds>(Clock::now() - start).count();
49 cout << name << "," << elapsed << "\n";
50 return static_cast<double>(elapsed);
51}
52
53void read_forward_backward(ReaderBase &reader) {
54 int64_t len = reader.info.video_length;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected