Fixed warning

This commit is contained in:
gabime 2024-03-16 19:30:49 +02:00
parent 232aace328
commit ca7c846089

View File

@ -36,8 +36,10 @@ public:
stopwatch()
: start_tp_{clock::now()} {}
[[nodiscard]]
std::chrono::duration<double> elapsed() const { return std::chrono::duration<double>(clock::now() - start_tp_); }
[[nodiscard]]
std::chrono::milliseconds elapsed_ms() const {
return std::chrono::duration_cast<std::chrono::milliseconds>(clock::now() - start_tp_);
}