When should the exercise heart rate be taken during exercise immediately after exercise before exercise during rest?

The exercise heart rate should be taken during exercise.