Generation of oscillations using transit-time effects