Update averagetime(funcname)