diff --git a/templates/normal/experiment.cpp b/templates/normal/experiment.cpp index e7a3e2c..2ad4dea 100644 --- a/templates/normal/experiment.cpp +++ b/templates/normal/experiment.cpp @@ -145,10 +145,11 @@ static void TaskStarter() start = base_clock::now(); - auto cur_time = duration_cast(base_clock::now() - start); std::cerr << "Starting TaskStarter thread at: "; std::cerr << base_clock::to_time_t(start) << std::endl; + auto cur_time = duration_cast(base_clock::now() - start); + while(cur_time.count() < hyperperiod) { auto min = cpp_time_base::max();