mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Change perf logs to use LOG_S
This commit is contained in:
parent
6518f8b79a
commit
2a1ce80b4d
@ -1,5 +1,7 @@
|
|||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
|
|
||||||
|
#include <loguru.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
Timer::Timer() {
|
Timer::Timer() {
|
||||||
@ -29,6 +31,6 @@ void Timer::ResetAndPrint(const std::string& message) {
|
|||||||
long long milliseconds = elapsed / 1000;
|
long long milliseconds = elapsed / 1000;
|
||||||
long long remaining = elapsed - milliseconds;
|
long long remaining = elapsed - milliseconds;
|
||||||
|
|
||||||
std::cerr << message << " took " << milliseconds << "." << remaining << "ms" << std::endl;
|
LOG_S(INFO) << message << " took " << milliseconds << "." << remaining << "ms";
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user