implemented time-profiling for important logging functions