CS 4953 Experimentation in Computer Science Assignment 0: Spring 2003
Due Thursday, January 23, 2003
Three of the methods we discussed for timing programs are
gettimeofday,
clock_gettime, and gethrtime.
For each of these, write a program similar to clockrealtimetest that
calls the function 21 times and stores the result in an array.
Do not use a loop, write out 21 statements to minimize the overhead.
Then compute and display the 20 differences and the average difference.
Run all three programs on the same system and record which system you ran on.
Write a short statement comparing the results and indicate which one
does the best.
Turn in the source code, lint output, and output of your programs.
Use the lint options -u and -x.
Use this cover sheet.