我花了3小时做作业。

It took me three hours to do my homework.

Source: Tatoeba

Sentence Composition