Trying to capture time elapsed