Get timestamp with logged entry like in sample app

Is there an easy way to get the logged (accelerometer) data to include the timestamp like in the sample app? How did you do it in the sample app?

Thanks
This discussion has been closed.