changes to get clocks ticks, add stmlog option to log results in file