Another test, I changed $rep - $tick back to normal and got this:
Code:
tid=3 tadded=1265085047 radded=1265085108 seconds=61 i=1
tid=2 tadded=1265002705 radded=1265084927 seconds=82283 i=2
tid=1 tadded=1264641238 radded=1264641238 seconds=82283 i=3
7:37
Good point, I will add that and test.
--------------- Added [DATE]1265081713[/DATE] at [TIME]1265081713[/TIME] ---------------
Do I need this at all?
PHP Code:
if($i>0)
{
$avg = $seconds / $i;
}
} else {
$avg = 0;
}