Every child is different, but usually potty training often takes from weeks to months. That's from introducing the potty to the time she's going on her own and staying dry most of the time.
Even after your child is staying dry during the day, it can be considerably longer before your child can make it through the night.
Although potty training is a big milestone, and one much anticipated by parents, don't rush it and make sure your toddler is ready. Forcing toilet training on a child who is really resisting can backfire. Instead, try to make potty time fun, perhaps reading stories or singing songs. Offer non-food rewards like stickers or trips to the park.