timer_t timerid; if (timer_create (CLOCK_REALTIME, NULL, &timerid) == -1) perror ("Failed to create a new timer);