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)

LunarG/gfxreconstruct framework/util/CMakeLists.txt :136

check_library_exists(c clock_gettime "" HAVE_GETTIME)

LunarG/gfxreconstruct framework/util/CMakeLists.txt :140

check_library_exists(rt clock_gettime "" HAVE_GETTIME)