# tf_agents.train.step_per_second_tracker.StepPerSecondTracker

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/train/step_per_second_tracker.py#L21-L44) |

Utility class for measuring steps/second.

    tf_agents.train.step_per_second_tracker.StepPerSecondTracker(
        step
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `step` | [`tf.Variable`](https://www.tensorflow.org/api_docs/python/tf/Variable) holding the current value for the number of train steps. |

<br />

## Methods

### `restart`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/train/step_per_second_tracker.py#L36-L38)

    restart()

### `steps_per_second`

[View source](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/train/step_per_second_tracker.py#L40-L44)

    steps_per_second()