User Tools

Site Tools


haas:fall2020:discrete:projects:pnc2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
haas:fall2020:discrete:projects:pnc2 [2020/10/22 13:36] – [Program Specifications] wedgehaas:fall2020:discrete:projects:pnc2 [2020/10/22 13:37] – [Displaying the runtime] wedge
Line 564: Line 564:
  
 ====Displaying the runtime==== ====Displaying the runtime====
-Once we have the starting and ending times, we can display this to the **timing** file pointer. You'll want this line:+Once we have the starting and ending times, we can display this to the **stderr** file pointer. You'll want this line:
  
 <code c> <code c>
-fprintf(timing, "%8.4lf\n",+fprintf(stderr, "%8.4lf\n",
 time_end.tv_sec-time_start.tv_sec+((time_end.tv_usec-time_start.tv_usec)/1000000.0)); time_end.tv_sec-time_start.tv_sec+((time_end.tv_usec-time_start.tv_usec)/1000000.0));
 </code> </code>
haas/fall2020/discrete/projects/pnc2.txt · Last modified: 2020/11/02 15:41 by wedge