If a defendant is convicted of a felony, at least three days shall elapse between conviction and sentence. If a motion for a new trial, or in arrest of judgment, is filed, sentence shall not be imposed until at least twenty-four hours after the motion is overruled. If the defendant expressly waives a delay provided for in this article or pleads guilty, sentence may be imposed immediately.