added timing class to measure actions