I believe it varies depending on line of sight, last time it was fed or given an instruction, etc. I have heard anywhere from 5 minutes (unlikely IMO but I've heard that) to a few hours for it to lose loyalty from wonderfully happy to I'm outta here.