Correlation between averages times of random walks on an irregularly shaped objects and the fractal dimensions