If you're talking abotu the RPG I've spend most time on, it's Dark Souls with over 300 hours. Runner-up is Fallout: New Vegas, with somewhere along 200 hours.
If it's longest by itself (no replayability taken into account), I'd say Final Fantasy VIII. I was a kid, but damn thing took me months.