Use timer for GPU idle instead of loop-count