title: Why is difftime Only Returning Whole Numbers?
body: <p>For some reason difftime is only returning whole numbers. My code is pretty simple.</p>
  
  <pre><code>#include &lt;time.h&gt;
  
  int main()
  {
      time_t test = time(NULL);
      while (1)
      {
          std::cout &lt;&lt; difftime(time(NULL), test) &lt;&lt; std::endl;
      }
  }
  </code></pre>
  
  <p>My output looks like</p>
  
  <pre><code>0...
  1...
  2...
  3...
  </code></pre>
  
  <p>Isn't difftime supposed to return doubles?</p>