Help for this page
$n = 0; while ( ... ) { ... $sum += 3600*$hour + 60*$min + $sec; $avg = $sum / ++$n; }