Matthew Hoppe celebrates his game-winning goal. (Kevin Jairaj-USA TODAY Sports)

Everything in life is timing.

Just ask the U.S. men’s national team.

Nicholas Gioacchini was standing on the sidelines, ready to come in for a tired Matthew Hoppe in the waning minutes of the Americans’ Concacaf Gold Cup quarterfinal match with Jamaica.

Hoppe made the most of his remaining time, scored his first international goal in the 83rd minute to lift the USA to a 1-0 victory over the Reggae Boyz at AT&T Stadium in Arlington, Texas Sunday night.

A minute later, Hoppe walked off a hero as he was replaced by Gioacchini.

The Americans will meet Qatar in the semifinals in Austin, Texas Thursday night. It was the 11th consecutive time the USMNT reached the Gold Cup semis.

“Jamaica was a tough team very good defense was difficult to break down,” USMNT head coach Gregg Berhalter said. “It’s about hanging in the game still embracing every moment, every single play of the game, and being fully committed in every play. We stayed calm. For such a young group, I think the poise was, was, was really remarkable in a game like this. They had moments where they took a little bit of initiative but overall we controlled the game. We won a ton of duels. Proud of the effort.”

Hoppe, named man of the match by Concacaf, was playing in his third international for the USA after turning some heads in the Bundesliga. The 20-year-old forward became the first American to register a hat-trick in the league, connecting six times in 24 matches for Schalke 04.

Berhalter stuck with Hoppe late into the match, saying that he was impressed with the forward on “the way he was able to get chances.”

“He had a couple of clear looks at goal; that’s today’s movement in the box,” he added. “He was grinding. When a guy puts that type of effort in and hangs in there and keeps going, you know, we want to stick with him, because we thought it was doing a good job and because he’s goal dangerous. It was great to see him score.

It was hardy a pretty performance by a young USA squad, which gutted out the win against the Reggae Boyz.

Both teams pressed forward but could not solve the opposing goalkeepers.

The USA’s Matt Turner, who made 10 saves in three group stage games, was called on to make four in the first half alone.

Andre Blake, considered by many to be the best Major League Soccer goalkeeper, was just as solid, although he could not stop Hoppe. Second-half substitute Roldan, floated in a cross from the right flank that Hoppe leaped to head home from four yards at the far post.

“Roldan made a great play, but it’s also something we talked about, space between the backline and goalie,” Berhalter said. “We got to get it to the far post, and so it was a good play.”