How long it takes depends a little on the pup, and a huge amount on the owner, their consistency and their approach.
Patience, consistency, patience, consistency, and more patience are your best resources. Next to those two, treats and praise are your best motivators to sucessful potty training.
Check out this link and see if it helps:
http://www.yorkietalk.com/forums/gen...ebreaking.html