add log for time spend