Simulation of Electro-Optic Modulators by a Time