From 49201196292107342dfed146b604b41f7d09df5b Mon Sep 17 00:00:00 2001 From: Tobias Langer Date: Tue, 11 Oct 2016 21:25:11 +0200 Subject: [PATCH] Minor reordering. --- templates/normal/experiment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- libgit2 0.26.0