+ gettimeofday(&stop, NULL);
+ if ((double)(stop.tv_usec - start.tv_usec) / 1000000 +
+ (double)(stop.tv_sec - start.tv_sec) > speed) {
+ gettimeofday(&start, NULL);
+ index += index_dir;
+ mvprintw(y, x, " ");
+ x += direction;
+ y = slope_y * index / slope_x;
+ mvprintw(y, x, "o");
+ }