public function SensorResult::setExecutionTime in Monitoring 8
Same name and namespace in other branches
- 7 lib/Drupal/monitoring/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::setExecutionTime()
Sets sensor execution time in ms.
Parameters
float $time: Sensor execution time in ms.
Overrides SensorResultInterface::setExecutionTime
File
- src/
Result/ SensorResult.php, line 409
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function setExecutionTime($execution_time) {
$this
->setResultData('execution_time', $execution_time);
}