Change time showed in report
This commit is contained in:
@@ -396,8 +396,14 @@ namespace platform {
|
|||||||
OptionsMenu& menu = output_type == OutputType::EXPERIMENTS ? main_menu : list_menu;
|
OptionsMenu& menu = output_type == OutputType::EXPERIMENTS ? main_menu : list_menu;
|
||||||
bool parserError = true; // force the first iteration
|
bool parserError = true; // force the first iteration
|
||||||
while (parserError) {
|
while (parserError) {
|
||||||
|
int index_menu;
|
||||||
auto [min_index, max_index] = paginator[static_cast<int>(output_type)].getOffset();
|
auto [min_index, max_index] = paginator[static_cast<int>(output_type)].getOffset();
|
||||||
std::tie(option, index, parserError) = menu.parse('r', min_index, max_index);
|
std::tie(option, index_menu, parserError) = menu.parse('r', min_index, max_index);
|
||||||
|
if (output_type == OutputType::EXPERIMENTS) {
|
||||||
|
index = index_menu;
|
||||||
|
} else {
|
||||||
|
subIndex = index_menu;
|
||||||
|
}
|
||||||
if (min_columns > cols) {
|
if (min_columns > cols) {
|
||||||
std::cerr << "Make screen bigger to fit the results! " + std::to_string(min_columns - cols) + " columns needed! " << std::endl;
|
std::cerr << "Make screen bigger to fit the results! " + std::to_string(min_columns - cols) + " columns needed! " << std::endl;
|
||||||
return;
|
return;
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
#include <locale>
|
#include <locale>
|
||||||
#include "best/BestScore.h"
|
#include "best/BestScore.h"
|
||||||
#include "common/CLocale.h"
|
#include "common/CLocale.h"
|
||||||
|
#include "common/Timer.h"
|
||||||
#include "ReportConsole.h"
|
#include "ReportConsole.h"
|
||||||
#include "main/Scores.h"
|
#include "main/Scores.h"
|
||||||
|
|
||||||
@@ -30,8 +31,9 @@ namespace platform {
|
|||||||
"Random seeds: " + fromVector("seeds") + " Discretized: " + (data["discretized"].get<bool>() ? "True" : "False") + algorithm
|
"Random seeds: " + fromVector("seeds") + " Discretized: " + (data["discretized"].get<bool>() ? "True" : "False") + algorithm
|
||||||
+ " Stratified: " + (data["stratified"].get<bool>() ? "True" : "False") + " Smooth Strategy: " + smooth
|
+ " Stratified: " + (data["stratified"].get<bool>() ? "True" : "False") + " Smooth Strategy: " + smooth
|
||||||
);
|
);
|
||||||
oss << "Execution took " << std::setprecision(2) << std::fixed << data["duration"].get<float>()
|
Timer timer;
|
||||||
<< " seconds, " << data["duration"].get<float>() / 3600 << " hours, on " << data["platform"].get<std::string>();
|
oss << "Execution took " << timer.translate2String(data["duration"].get<float>())
|
||||||
|
<< " on " << data["platform"].get<std::string>() << " Language: " << data["language"].get<std::string>();
|
||||||
sheader << headerLine(oss.str());
|
sheader << headerLine(oss.str());
|
||||||
sheader << headerLine("Score is " + data["score_name"].get<std::string>());
|
sheader << headerLine("Score is " + data["score_name"].get<std::string>());
|
||||||
sheader << std::string(MAXL, '*') << std::endl;
|
sheader << std::string(MAXL, '*') << std::endl;
|
||||||
|
Reference in New Issue
Block a user