Compressing time in GPX or FIT files

I'm looking for a tool or method to remove data points from a track file (FIT or GPX) and compress the time between remaining track points.

For example.... in a file that contains 1 second samples, remove every other sample and alter the time stamps on the data so that the remaining samples are marked as being 1 second apart.

If you know of a tool that does this, please point me in the right direction :-)

Thanks