Temporal characterization of atmospheric wavefront for adaptive optics