While investigating an abandoned alien planet, an alien scientist attempts to use Ancient technology to reunite with his dead wife. When the device activates, only Jack and Teal'c are aware that everyone on Earth and on other planets connected to the Stargate are being forced to relive the same 10-hour period over and over again, and they must try to find a way out of the loop, while having to explain every time what has happened to them. At one point O'Neill gets fed up with it all and says to Dr. Frasier: "What could possibly be in my eye that could explain all this" the third time he is examined. The two have to learn Latin to help Dr. Jackson translate the writing on the Ancient machine. They get sidetracked for a while when Dr. Jackson mentions that there are no repercussions in a time loop and take up golfing, although not on a golf course.
When they find out the truth, that the ancient device never worked, they confront the scientist, Malakai, and manage to convince him to shut it down by giving him the knowledge they learned and a moving speech by O'Neill.