It's complicated, and different controllers do slightly different things. AFAIK, the general rule is that the CPU monitors the input for pulsing. It allows a small delay before doing anything. Typically, the motor goes after about 1/4 or 1/2 a crank rotation, so something like 1/4 to 1/2...