mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
parent
5532231bbc
commit
a45c939040
@ -39,6 +39,10 @@ public:
|
||||
return std::chrono::duration<double>(clock::now() - start_tp_);
|
||||
}
|
||||
|
||||
std::chrono::milliseconds elapsed_ms() const {
|
||||
return std::chrono::duration_cast<std::chrono::milliseconds>(clock::now() - start_tp_);
|
||||
}
|
||||
|
||||
void reset() { start_tp_ = clock::now(); }
|
||||
};
|
||||
} // namespace spdlog
|
||||
|
Loading…
Reference in New Issue
Block a user