I've flown SYD-LHR via AUH a few times and have checked while in the lounge at AUH and my miles from the first leg have already posted.
I also did SYD-LAX recently with VA and while the miles for the outgoing leg posted within a couple of days the return took a couple of weeks. As others have said always give your card at check in and retain your boarding card just in case