stats timer

memory log after every 20 iterations