Commit 81f536f9f5c70984cdc592dc76c0ad98b9a04185

Authored by Scott Klum
1 parent 2627418b

Cleaned up Core::train a bit, switched to use Globals->startTime

Showing 1 changed file with 4 additions and 3 deletions
openbr/core/core.cpp
... ... @@ -61,9 +61,10 @@ struct AlgorithmCore
61 61 data[i].file.set("Train", true);
62 62  
63 63 if (transform.isNull()) qFatal("Null transform.");
64   - qDebug("%d training files", data.size());
  64 + qDebug("%d Training Files", data.size());
  65 +
  66 + Globals->startTime.start();
65 67  
66   - QTime time; time.start();
67 68 qDebug("Training Enrollment");
68 69 downcast->train(data);
69 70  
... ... @@ -80,7 +81,7 @@ struct AlgorithmCore
80 81 store(model);
81 82 }
82 83  
83   - qDebug("Training Time (sec): %d", time.elapsed()/1000);
  84 + qDebug("Training Time (sec): %d", Globals->startTime.elapsed()/1000);
84 85 }
85 86  
86 87 void store(const QString &model) const
... ...