Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit f8d5cd4d authored by gsell's avatar gsell
Browse files

boost::chrono replaced with std::chrono

parent 42d3e99a
No related branches found
No related tags found
1 merge request!657Resolve "replace boost::chrono with std::chrono"
...@@ -182,8 +182,8 @@ void FixedPisaNsga2<CO, MO>::initialize() { ...@@ -182,8 +182,8 @@ void FixedPisaNsga2<CO, MO>::initialize() {
initialized_m = false; initialized_m = false;
// start poll loop // start poll loop
run_clock_start_ = boost::chrono::system_clock::now(); run_clock_start_ = std::chrono::system_clock::now();
last_clock_ = boost::chrono::system_clock::now(); last_clock_ = std::chrono::system_clock::now();
run(); run();
// run has ended // run has ended
...@@ -192,8 +192,8 @@ void FixedPisaNsga2<CO, MO>::initialize() { ...@@ -192,8 +192,8 @@ void FixedPisaNsga2<CO, MO>::initialize() {
current_hvol_ = current_hvol_ =
variator_m->population()->computeHypervolume(comms_.island_id, hvol_ref_m); variator_m->population()->computeHypervolume(comms_.island_id, hvol_ref_m);
boost::chrono::duration<double> total = std::chrono::duration<double> total =
boost::chrono::system_clock::now() - run_clock_start_; std::chrono::system_clock::now() - run_clock_start_;
std::ostringstream stats; std::ostringstream stats;
stats << "__________________________________________" << std::endl; stats << "__________________________________________" << std::endl;
stats << "GENERATION " << act_gen << std::endl; stats << "GENERATION " << act_gen << std::endl;
...@@ -363,11 +363,11 @@ void FixedPisaNsga2<CO, MO>::postPoll() { ...@@ -363,11 +363,11 @@ void FixedPisaNsga2<CO, MO>::postPoll() {
current_hvol_ = hvol; current_hvol_ = hvol;
} }
boost::chrono::duration<double> total = std::chrono::duration<double> total =
boost::chrono::system_clock::now() - run_clock_start_; std::chrono::system_clock::now() - run_clock_start_;
boost::chrono::duration<double> dt = std::chrono::duration<double> dt =
boost::chrono::system_clock::now() - last_clock_; std::chrono::system_clock::now() - last_clock_;
last_clock_ = boost::chrono::system_clock::now(); last_clock_ = std::chrono::system_clock::now();
std::ostringstream stats; std::ostringstream stats;
stats << "__________________________________________" << std::endl; stats << "__________________________________________" << std::endl;
stats << "Arriving at generation " << act_gen + 1 << std::endl; stats << "Arriving at generation " << act_gen + 1 << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment