You are here

public function SensorResultEntity::getExecutionTime in Monitoring 8

Get sensor execution time in ms.

Return value

float

Overrides SensorResultDataInterface::getExecutionTime

File

src/Entity/SensorResultEntity.php, line 118
Contains \Drupal\monitoring\Entity\SensorResultEntity.

Class

SensorResultEntity
The monitoring_sensor_result entity class.

Namespace

Drupal\monitoring\Entity

Code

public function getExecutionTime() {
  $this
    ->get('execution_time')->value;
}