We have a Time issue in a C while loop. in one part of the program , the while loop receives information from a sensor via the SPI protocol and stores it in a mysql database