Simon Moser scored with 7.9 seconds left, lifting Switzerland to a 1-0 win over Latvia on Wednesday in the Olympic men's hockey opener for both teams.
Moser was credited with the game-winning goal that appeared to carom off a Latvian player in front of the net.
Edgars Masalskis made 38 saves, stopping shots with every part of his body.
The Latvians haven't lasted longer than the preliminary round the previous three Olympics, ranking 12th in the last two and ninth in 2002. They pushed the Czechs to overtime in a qualification match before losing at the Vancouver Games.
The Swiss advanced to the quarterfinals in 2010 and 2006 and they have a chance to upset some teams with more talent with Jonas Hiller in net.
Hiller made 21 saves.