CS 4953 Experimentation in Computer Science Assignment 0 Comments: Spring 2003
This was graded on a basis of 20 points.
- You should store the values directly in the array, not the differences.
- Calculate the differences after all times have been put in the array.
- gethrtime does not return any errors, so do not do error checking on it.
- gethrtime also does not return an error according to the POSIX standard,
but Soaris defines some possible errors for it. One is that the time
is past the year 2038.
- Do not do error checking when putting any of these in the array.
- If you must check for errors, store the return value in another array
and check only after all of the times have been stored.