Change towAvgTime return type to Double (#516)