I just don't understand why the guy didn't just use sleep(3) in
the book example.
There is no sleep() function in standard C, so perhaps that's why...

But then again, he's assuming time() returns a value in seconds, which it is not required to, so perhaps he's not overly concerned with standard C.