We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SHOWTIME_FILE_TOTAL
1 parent c2af315 commit 2e8b8b9Copy full SHA for 2e8b8b9
1 file changed
lib/timer.cpp
@@ -132,6 +132,7 @@ void Timer::stop()
132
std::cout << mStr << ": " << sec << "s" << std::endl;
133
} else if (mShowTimeMode == SHOWTIME_MODES::SHOWTIME_FILE_TOTAL) {
134
const double sec = (double)diff / CLOCKS_PER_SEC;
135
+ std::lock_guard<std::mutex> l(stdCoutLock);
136
std::cout << "Check time: " << mStr << ": " << sec << "s" << std::endl;
137
} else {
138
if (mTimerResults)
0 commit comments