protected function update_loop_times($start, $end) {
        $avg = intval(($start + $end) / 2);
        return array($start, $avg, $end);
    }
protected function update_loop_times($start, $end) {
        $avg = intval(($start + $end) / 2);
        return array($start, $avg, $end);
    }
protected function update_loop_times ( $ start , $ end ) { $ avg = intval ( ( $ start + $ end ) / 2 ) ; return array ( $ start , $ avg , $ end ) ; }
Returns the average time between 2 timestamps.

@param int $start
@param int $end
@return array [starttime, averagetime, endtime]
Returns the average time between 2 timestamps .