dont log short durations

This commit is contained in:
mrbesen 2022-04-19 20:25:15 +02:00
parent 98f2221cec
commit 8779d5a800
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ void LolAutoAccept::run() {
auto end = std::chrono::high_resolution_clock::now();
std::chrono::duration<double> dur = (end-start);
Log::info << "iteration took: " << (dur.count() * 1000 ) << " ms";
if(dur.count() > 1e-5)
Log::info << "iteration took: " << (dur.count() * 1000 ) << " ms";
std::this_thread::sleep_for(std::chrono::milliseconds(800));
}