--- nono/lib/stopwatch.h 2026/04/29 17:04:51 1.1 +++ nono/lib/stopwatch.h 2026/04/29 17:05:08 1.1.1.3 @@ -4,6 +4,10 @@ // Licensed under nono-license.txt // +// +// Stopwatch +// + #pragma once #include "header.h" @@ -34,6 +38,12 @@ class Stopwatch Start(); } + // ストップウォッチを停止して、経過時間をリセットする + void Reset() { + Stop(); + total = steady_clock::duration::zero(); + } + // 経過時間を nsec で返す uint64 Elapsed() const { using namespace std::chrono;