You are here

public function SensorResult::getExecutionTime in Monitoring 8

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

Get sensor execution time in ms.

Return value

float

Overrides SensorResultDataInterface::getExecutionTime

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

File

src/Result/SensorResult.php, line 381

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

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