You are here

public function SensorResult::getExecutionTime in Monitoring 7

Same name and namespace in other branches
  1. 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getExecutionTime()

Get sensor execution time in ms.

Return value

float

Overrides SensorResultInterface::getExecutionTime

1 call to SensorResult::getExecutionTime()
SensorResult::toArray in lib/Drupal/monitoring/Result/SensorResult.php
Returns sensor result data as array.

File

lib/Drupal/monitoring/Result/SensorResult.php, line 341
Contains \Drupal\monitoring\Result\SensorResult.

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function getExecutionTime() {
  return round($this
    ->getResultData('execution_time'), 2);
}