Determining when the hardening temperature has been reached by measurement of magnetic or electrical properties