public function SensorResult::setExecutionTime in Monitoring 7
Same name and namespace in other branches
- 8 src/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
- lib/
Drupal/ monitoring/ Result/ SensorResult.php, line 369 - Contains \Drupal\monitoring\Result\SensorResult.
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function setExecutionTime($execution_time) {
$this
->setResultData('execution_time', $execution_time);
}