Longitudinal characterization of the wake and electron bunch in a laser wakefield accelerator