Add `runPipeline` wrapper to mandatory track full run (#2100)
authorVitaliy Urusovskij <vitaliy.urusovskij@intel.com>
Tue, 8 Sep 2020 21:13:07 +0000 (00:13 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 21:13:07 +0000 (00:13 +0300)
tests/time_tests/common/main.cpp

index 0a05145..e038665 100644 (file)
@@ -28,11 +28,20 @@ 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();
 }
\ No newline at end of file