The call is made when the ball is played---that is, when an attacking player strikes the ball, playing it forward to a team mate. That's when the call needs to be made.
lets assume that c.ronaldo is passing the ball to rooney
the minute the ball leaves the foot of ronaldo if roony is ahead of the last defender of the other team its offside