Programming problem

Hey fellow programmers, i am a mech guy trying out arduino. i am taking the input from a MPU6050 GY521 breakout board for input of the values of gyrosensor. i want to delay the process of storing the value for 10 secs which is easy but here comes the tricky part,as i am taking the YPR, i also want to store the first value as another variable and then take the difference of the next values from that value. i hope someone can provide me with the code or atleast the method to do it. waiting for reply. thanking you in advance :)

I didn't follow that explnation 100%, but sounds like your delay might be using delay() and thus blocking the next read?

Take a look at BlinkWithOutDelay.

Edit: actually reading your question again, I don't see what the problem is. Why can't you save the reading as another variable? But why do you need to?

What are you actually trying to achieve?

You need to post your program so we can see what you can see.

The demo Several Things at a Time is an extended example of BWoD and illustrates the use of millis() to manage timing. It may help with understanding the technique.