Finite time estimation via piecewise constant measurements