But I seriously doubt any person would learn to avoid running in the house in a week or even two. And I was assuming that in every instance the shock would be administered, if a real person was shocking there would be some instances which he would miss. The punishment must be administered the exact time when the problem occurs, not a second later. The punishment must occur at a frequency high enough to justify reduction of the behaviors. Punishment should not be the standard for training because punishment rarely eliminates problems, is hard to administer every time, and can easily create more problems.
Compliance is better then punishment in almost every way.
Okay the problem is your dog bothers your cat. A punishment approach to the problem may permit the dog to chase the cat and then, as soon as he starts, apply a leash correction. This could work. But it would have been better to have never allowed your dog to chase the cat in the first place. For most pets making the dog comply with sitting would be a better alternative.