This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
haas:fall2020:discrete:projects:pnc2 [2020/10/22 13:36] – [Program Specifications] wedge | haas: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, " | + | fprintf(stderr, " |
time_end.tv_sec-time_start.tv_sec+((time_end.tv_usec-time_start.tv_usec)/ | time_end.tv_sec-time_start.tv_sec+((time_end.tv_usec-time_start.tv_usec)/ | ||
</ | </ |