I'm trying to get my dog to stop chasing the chickens and a friend has recommended a shock collar. Anyone have experience with them and did it work OK?

I need something which will get the dog's attention as soon as she starts to chase the chickens. Now, it often takes me a minute to get to her after she has started to chase, and once she starts chasing, she doesn't respond quickly to a verbal command.