DateTime t1 = System.DateTime.Now ; ………… DateTime t2 = System.DateTime.Now; string sum = (t2 - t1).Seconds.ToString();