The sample uses Unix headers and doesn’t compile with MSVC. Consider using standard C++ timers or wrapping the platform specifics manually