format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -2,21 +2,24 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using std::chrono::high_resolution_clock;
|
||||
using std::chrono::duration_cast;
|
||||
using std::chrono::high_resolution_clock;
|
||||
using std::chrono::microseconds;
|
||||
|
||||
timeutil::Timer::Timer() {
|
||||
start = high_resolution_clock::now();
|
||||
}
|
||||
int64_t timeutil::Timer::stop() {
|
||||
return duration_cast<microseconds>(high_resolution_clock::now()-start).count();
|
||||
return duration_cast<microseconds>(high_resolution_clock::now() - start)
|
||||
.count();
|
||||
}
|
||||
|
||||
timeutil::ScopeLogTimer::ScopeLogTimer(long long id) : scopeid_(id) {}
|
||||
timeutil::ScopeLogTimer::ScopeLogTimer(long long id) : scopeid_(id) {
|
||||
}
|
||||
|
||||
timeutil::ScopeLogTimer::~ScopeLogTimer() {
|
||||
std::cout << "Scope "<< scopeid_ <<" finished in "<< ScopeLogTimer::stop() << " micros. \n";
|
||||
std::cout << "Scope " << scopeid_ << " finished in "
|
||||
<< ScopeLogTimer::stop() << " micros. \n";
|
||||
}
|
||||
|
||||
void timeutil::from_value(float value, int& hour, int& minute, int& second) {
|
||||
|
||||
Reference in New Issue
Block a user