Fix average time per cell not being calculated correctly for large grids and many timesteps