Both of your examples can be and are used without any significant difference in meaning although in theory, plus longtemps is longer than plus de temps.
There are a few cases where plus longtemps is not idiomatic or unused :
J’ai besoin de plus de temps.
*J’ai besoin de plus longtemps.
Leave a comment