I have a quick question. Its rather simple but I am very confused. I am creating a timer in C using the terminal. I am using SIGALRM to send signals that subtracts the value of SUBTRACT_CONST. I am assuming that there are 25 TICKS_PER_SECOND or 1/25 which is 0.0400 my subtract constant. I have installed the signal handler and the timer to go off every 40000us set in the itimer struct. However, in one of my functions I cannot "catch" when the time becomes zero . When this TICK_PER_SECOND value is 32 or 16 it works as expected. My comparison does not seem to catch these different tick times. My time variable that is holding this value that's being subtracted from is a double.
if(TIME == 0) //my very simple comparison