① 将TimeSpan转换为时分秒
int allTime = (int)(DateTime.Now - Convert.ToDateTime(itemLine.begintime)).TotalMinutes;