WIMBLEDON, England -- Roger Federer endured two rain delays and a shaky moment late in the first set Wednesday to reach the quarterfinals at the Olympics by beating Denis Istomin of Uzbekistan 7-5, 6-3.
Serving at 5-all in the first set, the No. 1-seeded Federer faced three break points and erased them all. He then broke and was in control from there.
Federer and Stanislas Wawrinka later lost to unseeded Jonathan Erlich and Andy Ram of Israel, 1-6, 7-6 (5), 6-3. Federer and Wawrinka won the gold in doubles in 2008. Federer has yet to win a singles medal.
"I thought we played an excellent first set. Conditions were tough. They were breezy, a lot of shadow on the courts. But that didn't disrupt our great playing," Federer said.
"It was a pity we couldn't create a few more, maybe, opportunities throughout the second set. But obviously they found a bit of a way to get back into the match," he said. "They definitely played better once sort of the shadow went, all the flags, all the spectator shadows were gone. It was more clean tennis."
Wawrinka said: "One or two points can change the match, especially on grass courts."
Ram and Erlich, who play the top-seeded Bryan brothers in the quarterfinals, were elated to have faced Federer in doubles.
"It's not that we play him every day," Ram said.
"In the beginning, we were very nervous. You could see it on the court," he said. "When we sit and we talked, we just tried not to do as many mistakes as we did in the first set, and we managed to do so."
The No. 2-seeded Djokovic had his hands full against Hewitt, who is ranked 158th but was back on the court where he won Wimbledon 10 years ago. Djokovic gradually took control by winning a succession of long rallies from the baseline.
The Serb is trying to add to his medal collection after winning the bronze in 2008.
The second-round match had the most games -- 63 -- in a best-of-three-set match in men's doubles in the Olympics. The previous record was 59 games, set at the 2008 Beijing Games.
The third set, with 46 games, was the longest set in men's doubles at the Olympics. The previous record was 36 games in a 19-17 final set at the same match in 2008.
The match between the Brazilians and the Czechs was played over two days. It lasted four hours, 21 minutes.
Information from The Associated Press was used in this report.