This quote is saying that the person is thankful for the limited time they were given with someone, because they made use of the finite time they were given to create a connection or relationship that will last forever. It’s basically saying that even though the amount of time they had was limited and had an end, the relationship they created is long-lasting and won’t be forgotten.