Running the below
DateTime date2 = DateTime.Now;
Thread.Sleep(1000);
DateTime date1 = DateTime.Now;
TimeSpan timeDifference = date1.Subtract(date2);
Console.WriteLine(timeDifference.Seconds);
Show output of 1
Print the value in messageArray[0]
to see if it contain what you think it contains