Updated

Tracy McGrady says he is retiring from the NBA.

The seven-time All-Star announced his decision on ESPN and Twitter on Monday morning. McGrady spent 16 seasons in the NBA playing for the Raptors, Magic, Rockets, Knicks, Pistons and Hawks. He finished his career last season by signing with the San Antonio Spurs late in the year.

After being drafted by Toronto out of high school in 1997, McGrady averaged 19.6 points, 5.6 rebounds and 4.4 assists per game in a career that was curtailed by injuries.

McGrady said on ESPN that it's been "a great run. But it's time for it to come to an end."

McGrady didn't rule out continuing his career overseas. Before coming to the Spurs last season, McGrady played in China.