function PerformanceTimingData::getTCPTiming

Return value

int

File

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

Class

PerformanceTimingData
Class PerformanceTimingData

Namespace

Drupal\webprofiler\Frontend

Code

public function getTCPTiming() {
    if (isset($this->data['connectEnd']) && isset($this->data['connectStart'])) {
        return $this->data['connectEnd'] - $this->data['connectStart'];
    }
    else {
        return 0;
    }
}