ManaSinkPerfProxy: measure run time starting after the call to begin_run()

This commit is contained in:
Florian Lüke 2024-12-29 00:14:18 +01:00
parent 7d414c8e56
commit af8ea1db47

View file

@ -180,9 +180,10 @@ class ManaSinkPerfProxy: public IManaSink
perf_.dt_processEvent.clear(); perf_.dt_processEvent.clear();
perf_.t_endRun = {}; perf_.t_endRun = {};
perf_.t_beginRun = Perf::clock::now(); auto t = Perf::clock::now();
sink_->begin_run(descriptor_json); sink_->begin_run(descriptor_json);
perf_.dt_beginRun = Perf::duration_cast(Perf::clock::now() - perf_.t_beginRun); perf_.t_beginRun = Perf::clock::now();
perf_.dt_beginRun = Perf::duration_cast(Perf::clock::now() - t);
} }
void end_run(const char *descriptor_json) override void end_run(const char *descriptor_json) override