Time and Use of Accelerometer Data Rate

Caltoa:
I hope you are a good programmer and know electronics.
Why do you want timing to the millisecond, and only 20 samples a second ? May the timing drift a little ?

An microSD card can be added to the Arduino, storing is about 4kbyte per second.
The MPU-6050 with the i2cdevlib has a default sample rate of 100Hz. So up to 100Hz everything is okay and you can store the data.
You can also send the data to the computer via the serial over usb communication.

The RTC ds1307 can be synchronized with the Arduino timing:
Arduino Playground - HomePage
Use the link to pcjr.com for the newer version:
Time Library, Timekeeping and Time/Date Manipulation on Teensy
But I don't know about millisecond accuracy.

haha unfortunately I'm not sure if I'm good at either electronics or programming, but I do have a lot of time, and usually I learn better if I'm in a sink or swim type of position.

Thanks heaps though, well basically I was hoping to get 20 pieces of accelerometer data per second for 60 seconds, do something with all that data and end up with an INT value every minute with a real world time and date connected to it.

My first thought was to use the on board clock and then run an interrupt every 1/20th of a second to obtain accelerometer data, but then I thought if there was a millisecond function that also utilized time, it might help me save flash space and also control the time I obtain data from the accelerometer.

I probably could drift the timing a little if it helps? Thanks heaps for the links as well, I reckon I will definitely use that to get the proper time plus I know its accurate to at least the second.