Toddler cough

So my daughter has been sick with a cough and runny nose for the past 2 weeks. Her cough sounds horrible and keeps her awake at night. We took her to the doc today and they listened to her chest and what not and said she’s okay but just to monitor her and that her cough should go away soon. She is eating and drinking and in good spirits but I can’t help but worry about her. Especially at night when she has coughing fits that last a few mins. Is anyone else going thru or has gone thru this with their child? How long did it last?