I think you misunderstand what a switching power supply is.
Yes, things get rapidly switched, but the output is plain DC.
Do you want to control the speed of a motor using PWM or maybe a servonotor? That's different, but your specification for on and off times then makes more sense.