delphyne_demos
|
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.
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) |
def __init__ | ( | self | ) |
Just init the stats
def pos_tick_handler | ( | self, | |
behaviour_tree | |||
) |
def print_stats | ( | self | ) |
Print the stats
def record_tick | ( | self | ) |
A simulation tick happened. Record it. Every 1000 ticks print the stats and reset
def reset | ( | self | ) |
Clear all values
def start | ( | self | ) |
Record the time when we start measuring