When a preliminary examination is ordered, the court shall conduct the examination promptly but shall allow the defendant a reasonable time to procure counsel.