cmake HAVE_GETTIME examples

qt/qtbase cmake/FindWrapRt.cmake :23

check_cxx_source_compiles("
#include <time.h>
#include <unistd.h>

int main(int, char **) {
    struct timespec ts;
    clock_gettime(CLOCK_REALTIME, &ts);
    return 0;
}
" HAVE_GETTIME)