Miscarriage baby stopped growing at 6 weeks

But I didn’t find out till my 11week dr apt. I was given misoprostol to take Vaginally 4 pills... can anybody with experience with this medication tell me their experiences like how long did it take to work was it really painful thank you