How do you know when your baby

How do you know when your baby is done feeding on your breast? Is there a specific time frame they are supposed to latch on or when the baby falls asleep?