TimeSpan timespan1 = endTime.Subtract(startTime);
decimal second = timespan1.Second;
.....