Does "time" mean the same thing in these two sentences?

We had a wonderful time at the party.

I didn't have time to finish.
different meanings