title: Execute an operation every x seconds for y minutes in c#
body: <p>I need to run a function every 5 seconds for 10 minutes.</p>
  
  <p>I use a timer to run it for 5 secs, but how do I limit the timer to only 10 mins?</p>