--- nono/lib/stopwatch.h 2026/04/29 17:04:51 1.1.1.1 +++ nono/lib/stopwatch.h 2026/04/29 17:04:54 1.1.1.2 @@ -34,6 +34,12 @@ class Stopwatch Start(); } + // ストップウォッチを停止して、経過時間をリセットする + void Reset() { + Stop(); + total = steady_clock::duration::zero(); + } + // 経過時間を nsec で返す uint64 Elapsed() const { using namespace std::chrono;