ManaSinkPerfProxy: measure run time starting after the call to begin_run()
This commit is contained in:
parent
7d414c8e56
commit
af8ea1db47
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue