struct itimerval new_time, old_time;
new_time.it_interval.tv_usec = 0;
new_time.it_interval.tv_sec = 5;
new_time.it_value.tv_usec = 0;
new_time.it_value.tv_sec = seconds;
setitimer(ITIMER_PROF, &new_time, &old_time);