Put in time

To spend time doing something.

The man put in much time fixing up his house and now it looks very beautiful.