Should create a signal 
    struct itimerval new;  // it_val_old; // set a timer value

    struct sigaction action;
    action.sa_handler = handler;
    sigemptyset(&action.sa_mask);
    action.sa_flags = 0;

    sigaction(SIGPROF, &action, NULL); // set the action


    new.it_interval.tv_usec = 0; // set next value  microseconds
    new.it_interval.tv_sec = seconds; // set next value seconds

    new.it_value.tv_usec = 0; // set microseconds to zero for current value
    new.it_value.tv_sec = seconds; // set seconds to seconds for current value

    // printf("Setittimer: %d\n", setitimer(ITIMER_PROF, &it_val_new, NULL));

    int sig_return;
    if((sig_return = setitimer(ITIMER_PROF, &new, NULL)) == -1){
        fprintf(stderr, "Error: setitmer\n");
        perror("setitimer");
        exit(1);
    }
