Add method to get simulation time.