Added timing functionality to MGWindow