Trying to get time for period, and after changing SPI speed
Fixed variables for time from int to long