An Optical Pulsar