protected function getTimeSpentReferrerAction()
{
$timeSpent = $this->request->getCurrentTimestamp() - $this->visitProperties->getProperty('visit_last_action_time');
if ($timeSpent < 0) {
$timeSpent = 0;
}
$visitStandardLength = $this->getVisitStandardLength();
if ($timeSpent > $visitStandardLength) {
$timeSpent = $visitStandardLength;
}
return $timeSpent;
}