title: How to printf a time_t variable as a floating point number?
body: <p>I'm using a time_t variable in C (openMP enviroment) to keep cpu execution time...I define a float value sum_tot_time to sum time for all cpu's...I mean sum_tot_time is the sum of cpu's time_t values. The problem is that printing the value sum_tot_time it appear as an integer or long, by the way without its decimal part!</p>
  
  <p>I tried in these ways: </p>
  
  <ol>
  <li>to printf sum_tot_time as a double being a double value</li>
  <li>to printf sum_tot_time as float being a float value</li>
  <li>to printf sum_tot_time as double being a time_t value</li>
  <li>to printf sum_tot_time as float being a time_t value</li>
  </ol>