title: which data types help in timer behavior flow in python
body: <pre><code>for MaxTime:
      run function1 for timeout 10 secs
      after timeout 10 sec ,again
      run function1 for timeout 10 secs
      after timeout 10 sec , again
      run function1 for timeout 10 secs
      ...
      (do it untill MaxTime is reached )
  </code></pre>
  
  <p>which modules below can be used/helpful  ?</p>
  
  <pre><code>sched.scheduler 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>threading.timer 
  </code></pre>
  
  <p>mix of two above?</p>
  
  <p>could you point algo for this ?</p>
  
  <p>function1 is just a logging code which logs to a txt file.
  every time i should run the same function ; function1
  or just for simplicity ..assume function1 as block of code </p>