When dogs get stuck while mateing how long does it take for them to get unstuck?

When the male dog is finished.