title: How to manage a time delay (a short time period) in python
body: <p>I am working on an Temperature related app using <strong>Python</strong>(with tkinter), <strong>Raspberry Pi</strong> with <strong>DS18B20</strong> Temperature Sensor. The basic requirement of app is </p>
  
  <ul>
  <li>Display the temperature in every <strong>3sec</strong> and check if temperature crossed over a threshold limit (say <strong>10C</strong>) for continue <strong>10min</strong> it should activate the A/C relay.</li>
  </ul>
  
  <p>The code is working fine to display the temperature (in every 3sec) and activate the A/C relay, but I am unable to manage the 10min waiting window.</p>
  
  <p>I am new to Python, so any help regarding the same would be appreciate.</p>