Welcome to Healthcare Magic
You may need 2-3 weeks. It is possible after Transient Synovitis
which is relatively common and harmless. It should go away in a week's time if you take care of the knee joint. If the Doctor has advise to wear a cast, avoid much mobility of that knee. Take Pain killers as advised by the Doctor for the 1 week and you should be fine.