Time-marching method