A PS4 DualShock 4 controller takes about 2 to 3 hours to fully charge with a standard USB cable.
The charging source dictates everything.
A brand-new controller, or one whose battery has fully drained, can take about 4 hours on its first charge as the battery management circuitry calibrates.
If your controller is crawling toward full, one of these is usually why:
Stack these and you reliably hit the 2-hour end of the range:
Read the complete breakdown, fixes and what happens next.