我有一个清单:
List<DateTime> timeStamp;
假设该列表包含以下日期时间:
2006-09-07 11:46:09
2006-09-07 11:46:19
2006-09-07 11:46:20
2006-09-07 11:46:36
2006-09-07 11:47:49
2006-09-07 11:47:53
2006-09-07 11:48:02
2006-09-07 11:48:15
2006-09-07 11:48:29
2006-09-07 11:48:34
2006-09-07 11:54:29
2006-09-07 11:54:39
2006-09-07 11:54:49
2006-09-07 11:54:59
2006-09-07 11:56:19
2006-09-07 11:56:29
2006-09-07 11:56:39
2006-09-07 11:58:29
2006-09-07 11:58:34
2006-09-07 11:58:45
2006-09-07 11:58:53
2006-09-07 12:00:29
2006-09-07 12:00:39
2006-09-07 12:00:45
2006-09-07 12:00:54
2006-09-07 12:01:03
现在,我想计算总累积时间。所有这些时间都在同一个列表中,间隔代表一个停止/开始部分。我也无法控制时间戳的间隔。可能是 10 秒,也可能是 1 分钟。感谢您的任何帮助!