Adaptive Test-Time Scaling