How to execute the loop for specific time
<p>How can i execute the a particluar loop for specified time</p>

<pre><code>Timeinsecond = 600

int time = 0;
while (Timeinsecond &gt; time)
{
   // do something here
}
</code></pre>

<p>How can i set the time varaible here, if i can use the Timer object start and stop method it doesnot return me time in seconds</p>

<p>Regards
NewDev</p>
