(self)
return list(self._value.items())
Returns the text to display in two columns.
Returns the text to display in two columns.
Returns the text to display in two columns .
def get_columns(self):
    """Returns the text to display in two columns."""
    if self._frame_timer.measured_time > 0:
      self._fps_counter.value = 1. / self._frame_timer.measured_time
    self._value[_FPS_LABEL] = '{0:.1f}'.format(self._fps_counter.value)

    if self._runtime:
      if self._runtime.state == runtime.State.STOPPED:
        self._value[_STATUS_LABEL] = _RUNTIME_STOPPED_LABEL
      else:
        self._value[_STATUS_LABEL] = str(self._runtime.state)

      self._cpu_counter.value = self._runtime.simulation_time

      self._value[_TIME_LABEL] = '{0:.1f} ({1}x)'.format(
          self._runtime.get_time(), str(self._time_multiplier))
      self._value[_CPU_LABEL] = '{0:.2f}ms'.format(
          self._cpu_counter.value * 1000.0)
    else:
      self._value[_STATUS_LABEL] = _MISSING_STATUS_ENTRY
      self._value[_TIME_LABEL] = _MISSING_STATUS_ENTRY
      self._value[_CPU_LABEL] = _MISSING_STATUS_ENTRY

    if self._camera:
      self._value[_CAMERA_LABEL] = self._camera.name
    else:
      self._value[_CAMERA_LABEL] = _MISSING_STATUS_ENTRY

    self._value[_PAUSED_LABEL] = str(self._pause.value)

    return list(self._value.items())
def get_columns ( self ) : if self . _frame_timer . measured_time > 0 : self . _fps_counter . value = 1. / self . _frame_timer . measured_time self . _value [ _FPS_LABEL ] = '{0:.1f}' . format ( self . _fps_counter . value ) if self . _runtime : if self . _runtime . state == runtime . State . STOPPED : self . _value [ _STATUS_LABEL ] = _RUNTIME_STOPPED_LABEL else : self . _value [ _STATUS_LABEL ] = str ( self . _runtime . state ) self . _cpu_counter . value = self . _runtime . simulation_time self . _value [ _TIME_LABEL ] = '{0:.1f} ({1}x)' . format ( self . _runtime . get_time ( ) , str ( self . _time_multiplier ) ) self . _value [ _CPU_LABEL ] = '{0:.2f}ms' . format ( self . _cpu_counter . value * 1000.0 ) else : self . _value [ _STATUS_LABEL ] = _MISSING_STATUS_ENTRY self . _value [ _TIME_LABEL ] = _MISSING_STATUS_ENTRY self . _value [ _CPU_LABEL ] = _MISSING_STATUS_ENTRY if self . _camera : self . _value [ _CAMERA_LABEL ] = self . _camera . name else : self . _value [ _CAMERA_LABEL ] = _MISSING_STATUS_ENTRY self . _value [ _PAUSED_LABEL ] = str ( self . _pause . value ) return list ( self . _value . items ( ) )