Time-dependent simulations of steady C-type shocks