Real-Time Detection of Gravitational Microlensing