From 81f536f9f5c70984cdc592dc76c0ad98b9a04185 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Thu, 14 Nov 2013 13:57:38 -0500 Subject: [PATCH] Cleaned up Core::train a bit, switched to use Globals->startTime --- openbr/core/core.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openbr/core/core.cpp b/openbr/core/core.cpp index fbb52b6..78087c5 100644 --- a/openbr/core/core.cpp +++ b/openbr/core/core.cpp @@ -61,9 +61,10 @@ struct AlgorithmCore data[i].file.set("Train", true); if (transform.isNull()) qFatal("Null transform."); - qDebug("%d training files", data.size()); + qDebug("%d Training Files", data.size()); + + Globals->startTime.start(); - QTime time; time.start(); qDebug("Training Enrollment"); downcast->train(data); @@ -80,7 +81,7 @@ struct AlgorithmCore store(model); } - qDebug("Training Time (sec): %d", time.elapsed()/1000); + qDebug("Training Time (sec): %d", Globals->startTime.elapsed()/1000); } void store(const QString &model) const -- libgit2 0.21.4