aboutsummaryrefslogtreecommitdiff
path: root/src/thread_timer.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-28 01:12:32 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-28 01:12:32 +0000
commit7a21a6f81bce08a3db7f312bd2e0b7084b3e7fff (patch)
treecbcc19fcf98479dce5ad3e7954427bd82961a348 /src/thread_timer.h
parentdb4553b1a39ef8ef84a097dfa2e795c0a4df60d8 (diff)
parent56734c9de21b723684c083ccf7fcb8dad46ca387 (diff)
downloadgoogle-benchmark-7a21a6f81bce08a3db7f312bd2e0b7084b3e7fff.tar.gz
Change-Id: I033841d18cacdfc280e47e915b3a85ffad3c2962
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_;
}