nanosleep
ここらへんの続き。 今こんな感じ。 #include <X11/Xlib.h> #include <stdio.h> #include <stdlib.h> // nanosleep用。 #include <time.h> // gettimeofday用。 #include <sys/time.h> #define WIDTH 400 // ウィンドウの幅。 #define HEIGHT 200 // ウィンドウの高さ。 #define R 10 // 円の半径。 #define V 5 </sys/time.h></time.h></stdlib.h></stdio.h></x11/xlib.h>…