diff --git a/ex6/ex6.c b/ex6/ex6.c index c5cb4cd2d..de8e1858d 100644 --- a/ex6/ex6.c +++ b/ex6/ex6.c @@ -1,13 +1,15 @@ -// Write a program that will find the average time it takes for your computer -// to make a system call an empty write to stdout. Your program should use the -// `clock_gettime` procedure to time how long a single system call takes. It'll -// do this for one million iterations, and then find the average of all of those -// iterations in nanoseconds. -// For some helpful documentation and examples of using time-related system calls, -// visit this site: https://www.cs.rutgers.edu/~pxk/416/notes/c-tutorials/gettime.html -// While the linked site does say that `clock_gettime()` does not work on OSX, this -// turns out to only be the case for OSX versions < 10.12. Anything later than that -// and `clock_gettime()` should work just fine. +/* +Write a program that will find the average time it takes for your computer +to make a system call an empty write to stdout. Your program should use the +`clock_gettime` procedure to time how long a single system call takes. It'll +do this for one million iterations, and then find the average of all of those +iterations in nanoseconds. +For some helpful documentation and examples of using time-related system calls, +visit this site: https://www.cs.rutgers.edu/~pxk/416/notes/c-tutorials/gettime.html +While the linked site does say that `clock_gettime()` does not work on OSX, this +turns out to only be the case for OSX versions < 10.12. Anything later than that +and `clock_gettime()` should work just fine. +*/ #include #include