Distance calculation for Endless Platformer.

I am creating an endless platformer game in which the player is stationery and all the platforms move towards it.i am gradually increasing the speed of the game by increasing the timescale.
so how should i calculate the distance covered by the player.also is increasing the timescale the right way to increase the speed?

If you want absolutely everything to happen faster in your game as you progress (including particle speed and animations) you can use timeScale.

For distance you should use the same formula you use to move platforms towards the player. Distance is, in a way, how far the ground has traveled under the player, afterall.