Stan Wawrinka could have saved a lot of ink on the tattoo that sums up his tennis perspective on the inside of his left forearm. What is written there is a lengthy, philosophical musing from Irish poet Samuel Beckett:

“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.”

It certainly captures Wawrinka’s ultimately healthy attitude about a 14-year professional career that still is getting better months past Wawrinka’s 31st birthday. But then, so would “Roll with the punches.”

To get to his first U.S. Open championship final, against top-ranked Novak Djokovic Sunday, Wawrinka needed 12 Flushing Meadows appearances. Never as far as a major-tournament semifinal in his first 35 Grand Slam events, he now has advanced at least as far as the semis six times in his last 13 Slams.

This is his third major final in three years, and he won the previous two — the 2014 Australian Open and 2015 French. He has risen to No. 3 in the world rankings.

“It took me a little time, and step by step,” Wawrinka said. But he stuck to a realistic approach during an era dominated by his Swiss countryman Roger Federer, Serbia’s Djokovic, Spain’s Rafael Nadal and Britain’s Andy Murray.

advertisement | advertise on newsday

“I was looking at them — semifinal, final, every year,” Wawrinka said. “They have been [at] a different level than every other player.

“They have made me better. With them, every time I step on the court, even if they are way better in their career, I always have something I need to tell myself: Maybe I can beat them. You need to find a way. If you lose, it’s OK. You go back to practice.”

Against Djokovic, Wawrinka has lost 19 of 23 matches. But in Slams, he four times took Djokovic to the five-set limit before losing, and in the 2015 French Open final, he beat Djokovic in four.

Today, Wawrinka said he would think “not about the match, but the victory . . . confidence to tell myself I know I can do it, because I did it at the French Open final. Novak knows also that I can play my best tennis in the final of a Grand Slam.”

So many of his peers, Wawrinka said, faced the Federers, Djokovics, Nadals and Murrays “not even thinking they can beat them. I always try to believe in something, that maybe one day I can beat them, and that’s what happened the past few years.”

@NewsdaySports

With no guarantee, he reminded, that will continue . . . “In a Slam is where I want to play my best tennis,” he said. “But, again, when you play Novak, even playing your best tennis, you can also lose. Novak is a strong guy. He’s mentally a beast. He is amazing defender, amazing fighter, amazing player.”

Nevertheless, Wawrinka will try again against Djokovic, whose 12 career major titles put him behind only Federer (17), Pete Sampras (14) and Nadal (14). If he fails, Wawrinka intends to fail better. He already has proved he can take a punch.