13 #ifndef TESSERACT_UNITTEST_CYCLETIMER_H
14 #define TESSERACT_UNITTEST_CYCLETIMER_H
16 #include "absl/time/clock.h"
34 start_ = absl::GetCurrentTimeNanos();
44 sum_ += absl::GetCurrentTimeNanos() - start_;
52 return running_ ? absl::GetCurrentTimeNanos() - start_ + sum_ : sum_;
61 #endif // TESSERACT_UNITTEST_CYCLETIMER_H