Commit a8347086 authored by Federico Rossi's avatar Federico Rossi

Added full time in report (2)

parent aa6ebdf1
......@@ -39,7 +39,7 @@ int main(int argc, char **argv) {
}
auto end = get_time::now();
auto diff = end - start;
make_test_report(vimg,successes,times,std::chrono::duration_cast<ms>(diff).count(),"../../plot/test_perf_");
make_test_report(vimg,successes,times,std::chrono::duration_cast<ms>(diff).count(),time_mean/double(num),"../../plot/test_perf_");
std::cout << "Accuracy: " << successes << "/" << vimg.size() << "\n";
std::cout << "Time elapsed: " << std::chrono::duration_cast<ms>(diff).count() << "ms\n";
std::cout << "Time mean: " << time_mean/double(num) << std::endl;
......
......@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
std::cout << std::endl << stime/test_images.size() << std::endl;
auto end = get_time::now();
auto diff = end - start;
make_test_report(test_images,successes,times,std::chrono::duration_cast<ms>(diff).count(),"../../plot/test_perf_");
make_test_report(test_images,successes,times,std::chrono::duration_cast<ms>(diff).count(),stime/double(test_images.size()),"../../plot/test_perf_");
std::cout << "Accuracy: " << successes << "/" << test_images.size() << "\n";
std::cout << "Time elapsed: " << std::chrono::duration_cast<ms>(diff).count() << "ms\n";
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment