function PerformanceTimingData::getDataTiming

Return value

int

File

webprofiler/src/Frontend/PerformanceTimingData.php, line 61

Class

PerformanceTimingData
Class PerformanceTimingData

Namespace

Drupal\webprofiler\Frontend

Code

public function getDataTiming() {
    if (isset($this->data['responseEnd']) && isset($this->data['responseStart'])) {
        return $this->data['responseEnd'] - $this->data['responseStart'];
    }
    else {
        return 0;
    }
}