How long was sayyid ali khamenei ruling Iran?

In fact, he is still the most powerful figure in Iran and has the final say on every issue of national importance. A few days after Ayatollah Khomeini's demise, he was chosen as the supreme leader of Iran in 1989. There a short biography on his official website.

http://english.khamenei.ir//index.php?option=com_content&task=view&id=57&Itemid=20