"I have fought a good fight, I have finished [my] course, I have kept the faith:"
What a joy to know you have fought a good fight. Many I have talked to can only hope - wish - that they have done a good job for their Lord. In fact I don't know that I've ever talked to anyone that was confident that they had done all they could for their Lord in this life.
Paul might be our example here - do all that you can do and do it as best you can, then rely on the knowledge that you have done what God has desired of you.
“I have kept the faith” is one that we all should be able to evaluate. We know when we have failed the Lord, so we can know if we have done well.
Again, in this verse, he uses tenses that would indicate he had more than a premonition of his coming death - a knowledge of its coming is highly indicated.
I have included an appendix which contains a further study relating to this text and the believers’ feelings toward death – see appendix one.