How long do male dogs lock with female dogs?

After mating, locking only lasts about an hour.