It’s about an hour and 15 minute total round trip from the time I get in my car to goto the gym to the time I get in my car to go home. I tend to spend ~40-50 minutes lifting weights. Some days I stay longer to play basketball, rarely do I stay less.
Progress has been good in all areas, so it’s working alright for me.
The only times I have ever spent 2 hours lifting weights were when I was basically just dicking around. Doing lots of different exercises with light-medium weights, experimenting with new movements, not doing any maximal effort lifts, and not doing any heavy squats or deads.
Also, if I am with someone(especially someone who has never worked out with me before) working sets with them will take longer.
I can’t imagine actually going full bore for 2 hours though, there would be a heck of a lot of down time if I did.