【发布时间】:2018-06-08 13:05:24
【问题描述】:
Stopwatch startTime1=null;
TimeSpan secondsToFormat;
startTime1 = Stopwatch.StartNew();
startTime1.Stop();
secondsToFormat = secondsToFormat+ startTime1.Elapsed;
if (ClicksCount == 2)
{
secondsToFormat = startTime1 / 2;
AverageMsCount.Text = secondsToFormat.ToString();
TriesCount.Text = "2";
}
大家好,我希望你们今天过得愉快。所以,startTime1 是一个反应时间,我正在尝试获得平均反应时间,但在尝试出现类似标题中的错误后,我无法将 startTime1 除以 2 .
【问题讨论】: