added timing method