stencil3d: fix the calculation of time per step