aboutsummaryrefslogtreecommitdiff
path: root/src/thread_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_timer.h')
-rw-r--r--src/thread_timer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/thread_timer.h b/src/thread_timer.h
index 1703ca0..eb23f59 100644
--- a/src/thread_timer.h
+++ b/src/thread_timer.h
@@ -28,7 +28,7 @@ class ThreadTimer {
// Called by each thread
void StopTimer() {
- CHECK(running_);
+ BM_CHECK(running_);
running_ = false;
real_time_used_ += ChronoClockNow() - start_real_time_;
// Floating point error can result in the subtraction producing a negative
@@ -44,19 +44,19 @@ class ThreadTimer {
// REQUIRES: timer is not running
double real_time_used() const {
- CHECK(!running_);
+ BM_CHECK(!running_);
return real_time_used_;
}
// REQUIRES: timer is not running
double cpu_time_used() const {
- CHECK(!running_);
+ BM_CHECK(!running_);
return cpu_time_used_;
}
// REQUIRES: timer is not running
double manual_time_used() const {
- CHECK(!running_);
+ BM_CHECK(!running_);
return manual_time_used_;
}