Simple timer to track how long an operation takes