Although I understand all the words I am not sure exactly what the sentence means...!

"Он долго выбирал себе костюм"
Does it mean:

"He spent a long time selecting a suit (for himself?)" [in the department store...]

"He took a long time deciding what suit to wear" [in the morning]


or something else??

It's "долго" and "себе" that confuse me...

How precisely would you translate this sentence into English to convey the exact meaning?