File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
google_benchmark/include/benchmark Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1065,16 +1065,16 @@ struct State::StateIterator {
1065
1065
bool operator !=(StateIterator const &) const {
1066
1066
if (BENCHMARK_BUILTIN_EXPECT (cached_ != 0 , true )) return true ;
1067
1067
1068
-
1069
1068
#if defined(CODSPEED_INSTRUMENTATION)
1070
1069
measurement_stop ();
1070
+ #endif
1071
+ parent_->FinishKeepRunning ();
1071
1072
1073
+ #if defined(CODSPEED_INSTRUMENTATION)
1072
1074
if (parent_->codspeed_ != NULL ) {
1073
1075
parent_->codspeed_ ->end_benchmark ();
1074
1076
}
1075
1077
#endif
1076
-
1077
- parent_->FinishKeepRunning ();
1078
1078
return false ;
1079
1079
}
1080
1080
@@ -1087,13 +1087,15 @@ inline BENCHMARK_ALWAYS_INLINE State::StateIterator State::begin() {
1087
1087
return StateIterator (this );
1088
1088
}
1089
1089
inline BENCHMARK_ALWAYS_INLINE State::StateIterator State::end () {
1090
- StartKeepRunning ();
1091
-
1092
1090
#ifdef CODSPEED_INSTRUMENTATION
1093
1091
if (this ->codspeed_ != NULL ) {
1094
1092
this ->codspeed_ ->start_benchmark (name_);
1095
1093
}
1094
+ #endif
1095
+
1096
+ StartKeepRunning ();
1096
1097
1098
+ #ifdef CODSPEED_INSTRUMENTATION
1097
1099
measurement_start ();
1098
1100
#endif
1099
1101
You can’t perform that action at this time.
0 commit comments