Points are attributed to your account after each segment of the flight has been completed.
So, for a roundtrip flight, some points will appear in your account a few hours after your departure flight has been completed, and the rest of the points will appear after your return flight has been completed.