# How to get timesteps\_total from environment

**URL:** https://discuss.ray.io/t/how-to-get-timesteps-total-from-environment/6856
**Category:** RLlib
**Created:** [July 17, 2022, 12:11am UTC](https://discuss.ray.io/t/how-to-get-timesteps-total-from-environment/6856 "2022-07-17T00:11:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![evo11x](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/evo11x/32/2303_2.png) [@evo11x](https://discuss.ray.io/u/evo11x)
#### Post date: [July 17, 2022, 12:11am UTC](https://discuss.ray.io/t/how-to-get-timesteps-total-from-environment/6856/1 "2022-07-17T00:11:06Z")

</div>

How can I get timesteps\_total from the environment ?  
I need to increase the episode length after a number of time\_steps without having to stop and restore the training every time

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.
