Skip to content

Commit

Permalink
[trivial] fix timer precision. (#198)
Browse files Browse the repository at this point in the history
set precision of the timer to 6 digits.
  • Loading branch information
SimonDold authored Nov 27, 2023
1 parent 47cc432 commit f3ce70a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search/utils/timer.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "timer.h"

#include <ctime>
#include <iomanip>
#include <ostream>

#if OPERATING_SYSTEM == LINUX || OPERATING_SYSTEM == OSX
Expand Down Expand Up @@ -110,7 +111,7 @@ Duration Timer::reset() {
}

ostream &operator<<(ostream &os, const Timer &timer) {
os << timer();
os << fixed << setprecision(6) << timer();
return os;
}

Expand Down

0 comments on commit f3ce70a

Please sign in to comment.