Extracted a timing method