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::mutex mutex_;
std::condition_variable item_pushed_cond_; std::condition_variable item_pushed_cond_;
std::condition_variable item_popped_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(); auto now = the_clock::now();
if (now - start_time >= duration) if (now - start_time >= duration)
break; break;
auto p = now - lastPrintTime;
if (now - lastPrintTime >= print_interval) if (now - lastPrintTime >= print_interval)
{ {
std::cout << fn_name << ": " << format(counter) << " per sec" << std::endl; std::cout << fn_name << ": " << format(counter) << " per sec" << std::endl;