Mark Stone scored the overtime winner on Thursday to eliminate Switzerland and launch Canada into the World Championship semifinals.
The Canadians barely survived regulation, however, and needed a dramatic last-second scramble to force the extra frame.
With Canada down 2-1 late in the third period, Damon Severson fired a point shot that trickled over the goal line to tie the game with 0.4 seconds on the clock.
Stone's game-winner was his second tally of the contest and seventh of the tournament, moving him into a tie with Anthony Mantha - who did not play against Switzerland due to his one-game suspension - for the team lead.
Canada has now won seven straight contests heading into the semifinals.