The applicability of a near-field scanning optical microscope (NSOM) to measure ultrafast phenomena is experimentally demonstrated. For this application a commercial NSOM is combined with a picosecond laser sampling system. The ability of this time resolved NSOM to perform function and failure analysis of microwave devices is demonstrated. Measurements of high speed electric signals up to 7.5 GHz via the direct electro-optic sampling technique are performed.