Computer‐controlled high‐speed peak detector for use with pulsed lasers