The average time is around 9 months, four days and five hours. I could give you the minutes and seconds, too, but I don’t think precision is what you’re looking for.
There are so many factors involved. Who broke up with whom? How long were you together? How intense was the relationship? What other life circumstances are going on (job changes, moving, deaths in family, etc).
It also depends on your personality, too. Are you the kind of person who can throw themselves into work to distract yourself? Are you outgoing? Do you have a lot of friends to go out with? What is your support system like? Are you generally pessimistic or depressed? Do you think positively? Do you believe you can get yourself back on track, or do you feel totally stuck? Do you mope around, enjoying feeling sorry for yourself? Do you have a falsely cheerful upbeatness that covers over your real feelings?
The thing is that heartbreak totally sucks. If someone you love dumps you, it’s worse. It’s more worse depending on how long you were together, and the reasons for the breakup.
It’s a grieving process. I forget all the steps—denial, bargaining, etc., etc. It takes as long as it takes. I think it’s best to do it fully. Not hiding from it, or any aspect of it, yet also not wallowing in it. Get all the support you can. Take responsibility for getting better, but don’t push it falsely forward.
Is this hypothetical or real? If real, are there more details?