Newborn on the boob

An

I know she feeds around 2-3 hours, whenever she does the cues but how long should she feed? I just fed her for half an hour all together but esrlier i fed her for only 12 minutes, is that okay?