Schedule On the Fly: Diffusion Time Prediction for Faster and Better Image Generation