title: Timed C Program Loop
body: <p>I need to loop for a certain amount of time based on user input ( in C Program ).</p>
  
  <p>Example: User says loop for 2 Minutes ( = 120 seconds).</p>
  
  <pre><code>while(time &lt;= 2 Minutes)
  {
      do something
  }
  </code></pre>
  
  <p>How would I go about doing this in C? Thanks for your help!!</p>