The time between data recieved

Why buy a dog and bark yourself? The processor knows how to do subtractions. Make sure you subtract the right way around as I mentioned above.