Piecewise constant martingales and lazy clocks