expression, adverb
Adverbial phrase indicating that an action or state continues over an extended period. Often used with verbs in the ~ている form or past tense.
長いことお待たせしてすみません。
I'm sorry to have kept you waiting for so long.
彼は長いこと入院していた。
He was hospitalized for a long time.
Phrase composed of the adjective 長い (long) and the nominalizer こと (thing/matter), literally 'a long thing', used adverbially to mean 'for a long time'.