Temperature control using relay.

The millis() function is a simple counter, counting up all the time.
You record a moment in time , then check how much time has elapsed since, and if enough time has elapsed (in your case 10 mins or 600,000 ms) start doing something.