Calculates the duty cycle of a pulsed laser as a function of the repetition rate and of the pulse duration.