Changed 'alarm' to 'setitimer' which counts only the time while the program is running instead of the wall clock time