Source code for jupedsim.tracing

# Copyright © 2012-2023 Forschungszentrum Jülich GmbH
# SPDX-License-Identifier: LGPL-3.0-or-later

import jupedsim.native as py_jps


[docs]class Trace: def __init__(self) -> None: self._obj = py_jps.Trace @property
[docs] def iteration_duration(self) -> float: """Time for one simulation iteration in us. Returns: Time for one simulation iteration in us """ return self._obj.iteration_duration
@property
[docs] def operational_level_duration(self) -> float: """Time for one simulation iteration in the operational level in us. Returns: Time for one simulation iteration in the operational level in us """ return self._obj.operational_level_duration
def __str__(self) -> str: return self._obj.__repr__()