added some timing collection to be used for better logging