Add getTimeStep fucntion to ConstraintDynamics class.