#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#if _WIN32 || _WIN64
#include <windows.h>
static void sleep_ms(int time) {
Sleep(time);
}
#else
#include <unistd.h>
static void sleep_ms(int time) {
usleep(time * 1000);
}
#endif
memcpy(user_data, gaze_data, sizeof(*gaze_data));
}
char* serial_number = NULL;
sleep_ms(2000);
printf("Failed subscribing to eye openess with error:%d\n", (int)status);
return;
}
printf("Failed unsubscribing to eye openess with error:%d\n", (int)status);
return;
}
printf(
"Eye openness example data \n"
"System timestamp: %"PRId64"\n"
"Tracker timestamp: %"PRId64"\n"
"left validity: \t%d\n"
"right validity: %d\n"
"left value: \t%.0f \tmm\n"
"right value: \t%.0f \tmm\n",
);
sleep_ms(2000);
}