Skip to content

Commit

Permalink
Add runPipeline wrapper to mandatory track full run (openvinotoolki…
Browse files Browse the repository at this point in the history
  • Loading branch information
vurusovs authored Sep 8, 2020
1 parent 2c6ccee commit 867340e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/time_tests/common/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,21 @@ bool parseAndCheckCommandLine(int argc, char **argv) {
}


/**
* @brief Function calls `runPipeline` with mandatory time tracking of full run
*/
int _runPipeline() {
SCOPED_TIMER(full_run);
return runPipeline(FLAGS_m, FLAGS_d);
}


/**
* @brief Main entry point
*/
int main(int argc, char **argv) {
if (!parseAndCheckCommandLine(argc, argv))
return -1;

return runPipeline(FLAGS_m, FLAGS_d);
return _runPipeline();
}

0 comments on commit 867340e

Please sign in to comment.