Extracting exact distance information for an animation
You can use the "MeasureIt" add-on: enable it from the user preferences. 

Then select your two objects and, from the left panel of the 3D viewport (T), look for "MeasureIt" and click on "Link" under the "Add measure" box. Then hit "Show" to visualize it, if it isn't displayed already.