First narrow down what โtakes hours to bootโ means. Does nothing happen when you press the power button, do the fans run without a display, or does the firmware screen appear quickly and the operating system stall afterward? Those are very different problems.
If it won't power on or show a firmware screen, the power supply is one possibility, as are the motherboard and other hardware. If it gets past that stage and hangs while loading the operating system, check the boot drive and its connections too. A known-good compatible power supply is a more useful test than guessing from the symptoms alone.
q17!rclk_604:
It may help to note whether the clock or firmware settings are lost after the PC has been unplugged. That can separate a battery problem from the startup problem.