So I have a sets of numbers representing some timings. This is how they look like:
[sec] [msec]
100 75
100 200
101 60
101 233
102 255
104 21
First column contains the elapsed seconds, and the second one the elapsed milliseconds. Values are represented using 8bit (so if the ms number is bigger than 255, the sec one gets incremented).
Now what I want to do, is to calculate the elapsed time (in milliseconds) between two inteframing values.
What I managed to do is this:
First interframe: 200 - 75 = 125ms.
Second interframe: (1 * 255 + 60) - 200 = 115ms.
Third interframe: 233 - 60 = 173ms.
Forth interframe: (1 * 255 + 255) - 233 = 277ms.
Fifth interframe: (2 * 255 + 21) - 255 = 276ms.
But this method is kinda hard to implement...
Is there any other method to find the elapsed time (in milliseconds) using another method?
sec
bytes are identical, substract themsec
ones, and you'll get the elapsed msec. This is all the info. that I got. L.E. It may actually be 1/256ths of a second.