diff --git a/src/strategy/Value.h b/src/strategy/Value.h index 25f61b59..9ab4b89a 100644 --- a/src/strategy/Value.h +++ b/src/strategy/Value.h @@ -54,19 +54,19 @@ class CalculatedValue : public UntypedValue, public Value T Get() override { if (checkInterval < 2) { - PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); + // PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); value = Calculate(); - if (pmo) - pmo->finish(); + // if (pmo) + // pmo->finish(); } else { time_t now = getMSTime(); if (!lastCheckTime || now - lastCheckTime >= checkInterval) { lastCheckTime = now; - PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); + // PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); value = Calculate(); - if (pmo) - pmo->finish(); + // if (pmo) + // pmo->finish(); } } return value;