Time-resolved emittance and energy measurement of a microsecond electron beam