public function CapacityTracker::spentExecutionTime in Purge 8.3
Get the counter tracking actual spent execution time during this request.
Return value
\Drupal\purge\Counter\CounterInterface The counter object.
Overrides CapacityTrackerInterface::spentExecutionTime
File
- src/
Plugin/ Purge/ Purger/ CapacityTracker.php, line 355
Class
- CapacityTracker
- Provides the capacity tracker.
Namespace
Drupal\purge\Plugin\Purge\PurgerCode
public function spentExecutionTime() {
if (is_null($this->spentExecutionTime)) {
$this->spentExecutionTime = new Counter(0);
$this->spentExecutionTime
->disableDecrement();
$this->spentExecutionTime
->disableSet();
}
return $this->spentExecutionTime;
}