"Too" is used in the first sentence as an adverb of degree, modifying the adjective "long". "Too" adds the idea of excess. "Too long" means excessively/overly long. (A consequence may also be implied or stated e.g. I wasted time/ the day grew late / I forgot to do something important...)
The phrase, "a long time" is neutral.