Using setitimer and sigaction how to schedule a function that gets called every 10 secs?