A device external to an implantable medical device (IMD) is provided with
an accurate reference clock. The programmer receives time data from the
IMD and compares that data to time data from the reference clock. Based
on this comparison, the programmer determines how much a clock within the
IMD is drifting per unit of time. A correction factor is generated so
that data received from the IMD can then be correlated to the correct
reference time.