next up previous index
Next: Restoring and Saving the Up: Timing a Job Previous: Timing a Job

Exercises

1
Use function time to wall-clock time writes and reads in programs mkrandfile (section 3.4.3) and xrandfile (section 4.3.4). You must ensure that individual writes and reads are sufficiently large for this to work, because function time returns time with the accuracy of one second, which is a very long time in computing. But this may just about work, if individual writes and reads are huge and take long time.
2
Implement an option that can be used to turn timing on. Design the program's logic so that timing is turned off by default.



Zdzislaw Meglicki
2004-04-29