mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
parent
87b8401011
commit
5a207ad9ce
@ -38,6 +38,10 @@ public:
|
||||
|
||||
std::chrono::duration<double> elapsed() const { 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