Consider:
#include #include #include using namespace std; const int times = 1000; const int N = 100000; vo
A call to usleep may or may not result in a context switch. If it does, it will take longer than if it doesn't.
usleep