title: How to run a function every 10 seconds?
body: <p>I know this question has been asked quite a few times on SO, but none of them have been able to fix my problem. <strong>I want to call a function every 10 seconds using threads</strong>.</p>
  
  <p>I have a function that does frame processing. I want to be <strong>able to grab a frame after every 10 seconds and then process it</strong>. My research showed that it would be best to use threads for that purpose, and, as I need to perform it after a specific period of time, I would also require a timer control.</p>
  
  <p>I am not able to figure out how can use threading and timers together. Moreover, I have tried using a <code>BackgroundWorker</code> control which, while processing, hangs up my app badly. I have also tried using a timer control and tried calling the function every 10 seconds, but in that case, if the process exceeds 10 seconds that might cause some problems.</p>
  
  <p>Any examples or source code that could show me how to call a function every 10 seconds using threading will be really appreciated.</p>