stats_utils: added some timing measures