how to change timestep on program runtime?

how can i dynamic change this value?

Time.timeScale = 0.5f; // slow down
Time.timeScale = 1f; // normal speed
Time.timeScale = 2f; // two times faster than normal
Time.timeScale = 0f; // stop the time and the game
You can find more info here at Unity docs: Unity - Manual: Important Classes - Time