message with system time after each iteration of foreach loop