title: Printing time in seconds
body: <p>I am writing a program and attempting to time the number of seconds that passes when a given block of code runs. Afterwards I would like to print the total time it took to run the block of code in seconds. What I have written is:</p>
  
  <pre><code>time_t start = time(0);
  // block of code
  double seconds_since_start = difftime(time(0), start);
  printf("seconds since start: %2.60f\n", seconds_since_start);
  </code></pre>
  
  <p>I have <code>printf()</code> printing to 60 decimal precision and all of the times still come out to 0.000000...</p>
  
  <p>Is there an error in my time function? I find it hard to believe that the task I am asking to time would not account for any time in 60 decimal precision.</p>