An electronic driver circuit for LEDs and LASERs is provided for use in time-of-flight applications featuring a high efficiency of energy-conversion and a high precision of distance-measurements based on a dual conversion circuit. A voltage to voltage DC-DC conversion is hereby merged with a DC-voltage to pulsed-current booster, this booster operating at a time-of-flight modulation frequency. At the start of a new measurement cycle, the PWM signal for driving the DC-DC conversion is updated in response to currents observed during previous illumination periods.