As far as we can tell, Stegosaurus died out about 145 million years ago, while Tyrannosaurus showed up about 72 million years ago.
There's more time between the last Stegosaurus and the first T-Rex then there is between the last T-Rex and us right now. A little off topic, but it's kind of mind-blowing to think of just how long the dinosaurs were around.