If a startup is not making serious money after 2 years, it's probably dead in the water.
People usually confuse their personal projects with startups.
I don't think the time spent on a startup is a good measure of whether to give up or not. There are plenty of examples of companies that took longer than 2 years to get to significant revenue (and plenty more that have never turned a profit).