A wavefront sensor is integrated with a surgical microscope for allowing a doctor to make repeated wavefront measurements of a patients eye while the patient remains on an operating table in the surgical position. The device includes a wavefront sensor optically aligned with a surgical microscope such that their fields of view at least partially overlap. The inclusion of lightweight, compact diffractive optical components in the wavefront sensor allows the integrated device to be supported on a balancing mechanism above a patients head during a surgical procedure. As a result, the need to reposition the device and/or the patient between measuring optical properties of the eye and performing surgical procedures on the eye is eliminated. Many surgical procedures may be improved or enhanced using the integrated device, including but not limited to cataract surgery, Conductive Keratoplasty, Lasik surgery, and corneal corrective surgery.