sys/time.h is not available on Windows. Use C++11 <chrono> instead so that the tests compile on Windows.