The court in its discretion may sentence the defendant either before or after the filing of a motion for new trial or arrest of judgment.