Moved the delay from calling usleep to std::chrono::milliseconds.  Using std::chrono as the time base.