mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
fix queue
This commit is contained in:
parent
31315db7b2
commit
a7194295c8
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user