Prechádzať zdrojové kódy

Output the reconstruction time

Matthias Vogelgesang 9 rokov pred
rodič
commit
c582b75d3b
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      lamino.c

+ 4 - 0
lamino.c

@@ -108,6 +108,7 @@ run_reconstruction (Params *params)
     guint padded_width;
     guint padded_height;
     gdouble angle_step;
+    gdouble time = 0.0;
     UfoPluginManager *pm = NULL;
     UfoTaskGraph *graph = NULL;
     UfoBaseScheduler *sched = NULL;
@@ -227,6 +228,9 @@ run_reconstruction (Params *params)
     ufo_base_scheduler_run (sched, graph, &error);
     check (error);
 
+    g_object_get (sched, "time", &time, NULL);
+    info("Finished in %3.3fs\n", time);
+
     g_object_unref (pm);
     g_object_unref (graph);
     g_object_unref (sched);