raw method to calculate elapsed time