- switch from usleep/useconds_t to nanosleep/struct timespec.
This was done because trying to get useconds_t/usleep to compile cleanly on OSX and Linux was a pain in the ass. Switching to struct timespec required writing a few math/compare functions for the timespec stuff. I don't know why POSIX didn't define any of these :(
Showing with 50 additions and 20 deletions