delphyne_demos
SimulationStats Class Reference

Detailed Description

This is a simple class to keep statistics of the simulation, just
averaging the time it takes to execute a simulation step from the outside
world. Every 1000 measures, the values are printed to stdout.
Inheritance diagram for SimulationStats:
[legend]

Public Member Functions

def __init__ (self)
 
def reset (self)
 
def print_stats (self)
 
def start (self)
 
def record_tick (self)
 
def pos_tick_handler (self, behaviour_tree)
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Just init the stats

Member Function Documentation

◆ pos_tick_handler()

def pos_tick_handler (   self,
  behaviour_tree 
)

◆ print_stats()

def print_stats (   self)
Print the stats

◆ record_tick()

def record_tick (   self)
A simulation tick happened. Record it.
Every 1000 ticks print the stats and reset

◆ reset()

def reset (   self)
Clear all values

◆ start()

def start (   self)
Record the time when we start measuring

The documentation for this class was generated from the following file: