fix queue

This commit is contained in:
gabime 2014-01-29 04:08:58 +02:00
parent 31315db7b2
commit a7194295c8
2 changed files with 2 additions and 4 deletions

View File

@ -104,8 +104,7 @@ private:
std::mutex mutex_;
std::condition_variable item_pushed_cond_;
std::condition_variable item_popped_cond_;
static constexpr auto one_hour = std::chrono::seconds(3);
static constexpr auto one_hour = std::chrono::hours(1);
};
}

View File

@ -35,7 +35,6 @@ inline void bench(const std::string& fn_name, const std::chrono::milliseconds &d
auto now = the_clock::now();
if (now - start_time >= duration)
break;
auto p = now - lastPrintTime;
if (now - lastPrintTime >= print_interval)
{
std::cout << fn_name << ": " << format(counter) << " per sec" << std::endl;
@ -55,4 +54,4 @@ inline void bench(const std::string& fn_name, const std::function<void() >& fn)
std::cout << fn_name << ": " << duration_cast<milliseconds>(delta).count() << " ms" << std::endl;
}
}
}