Refactor timings object into class in order to reuse difference calculation.