def path_length(self, path, num_repeats=10):
    'Determines the length of a given path, currently the metric is based on the time to move to.'
    begin_time = datetime.datetime.now()
    for i in range(num_repeats):
        self.virtual_move_to(path)
    end_time = datetime.datetime.now()
    delta_t = (end_time - begin_time)
    path_length = (delta_t.total_seconds() / float(num_repeats))
    if (path_length == 0.0):
        print('Warning the path length is less than 1 microsecond,make sure num_repeats is high enough to measure it.')
    return path_length
Determines the length of a given path, currently the metric is based on the time to move to.
def path_length(self, path, num_repeats=10):
    
    begin_time = datetime.datetime.now()
    for i in range(num_repeats):
        self.virtual_move_to(path)
    end_time = datetime.datetime.now()
    delta_t = (end_time - begin_time)
    path_length = (delta_t.total_seconds() / float(num_repeats))
    if (path_length == 0.0):
        print('Warning the path length is less than 1 microsecond,make sure num_repeats is high enough to measure it.')
    return path_length