From 9aabdfc0e940f8c2c7798baa2633da7538f3ea13 Mon Sep 17 00:00:00 2001 From: zxd Date: Tue, 16 Jul 2019 18:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E6=97=B6=E9=97=B4=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Formation/FlightTaskManager.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Plane.FormationCreator/Formation/FlightTaskManager.cs b/Plane.FormationCreator/Formation/FlightTaskManager.cs index 9042eb9..57e7fe2 100644 --- a/Plane.FormationCreator/Formation/FlightTaskManager.cs +++ b/Plane.FormationCreator/Formation/FlightTaskManager.cs @@ -1378,15 +1378,19 @@ namespace Plane.FormationCreator.Formation DateTime taskStartTime; public async Task RunTaskAsync() { - taskStartTime = DateTime.Now; - Message.Show($"{DateTime.Now.ToString("HH:mm:ss")}:任务开始"); + if (CurrentRunningTaskIndex == 0) + { + taskStartTime = DateTime.Now; + Message.Show($"{DateTime.Now.ToString("HH:mm:ss")}:任务开始"); + } await RunAsync(); if ((IsPaused ?? false) == false) { timeSpan = DateTime.Now - taskStartTime; - Message.Show($"{DateTime.Now.ToString("HH:mm:ss")}:任务完成"); + Message.Show($"{DateTime.Now.ToString("HH:mm:ss")}:任务结束"); Message.Show($"总时长 = {timeSpan.Minutes}分{timeSpan.Seconds}秒"); - } + + } } public async Task RunAsync()