get_duration_s#

MultiAgentEpisode.get_duration_s() → float[source]#

Returns the duration of this Episode (chunk) in seconds.

Returns:

The seconds between the start of this episode chunk and its most recently added env step, measured with time.perf_counter(). 0.0 if no env step has been added yet.

Return type:

float