Mesuring time in simulation