From cf3063f3e41c088803a31bf3d3009509c8d43e1e Mon Sep 17 00:00:00 2001 From: doudou0720 <98651603+doudou0720@users.noreply.github.com> Date: Sat, 14 Feb 2026 21:40:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(StartupTimer):=E5=88=86=E7=A6=BB=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E9=97=B4=E5=92=8C=E5=90=AF=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: doudou0720 <98651603+doudou0720@users.noreply.github.com> --- Ink Canvas/App.xaml.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Ink Canvas/App.xaml.cs b/Ink Canvas/App.xaml.cs index f74024af..e2658ed4 100644 --- a/Ink Canvas/App.xaml.cs +++ b/Ink Canvas/App.xaml.cs @@ -1049,7 +1049,15 @@ namespace Ink_Canvas { isStartupComplete = true; startupCompleteHeartbeat = DateTime.Now; - LogHelper.WriteLogToFile($"启动完成心跳已记录,启动画面显示时长: {(startupCompleteHeartbeat - splashScreenStartTime).TotalSeconds:F2}秒"); + if (_isSplashScreenShown && splashScreenStartTime != DateTime.MinValue) + { + LogHelper.WriteLogToFile($"启动完成心跳已记录,启动画面显示时长: {(startupCompleteHeartbeat - splashScreenStartTime).TotalSeconds:F2}秒"); + } + else + { + LogHelper.WriteLogToFile($"启动完成心跳已记录"); + } + LogHelper.WriteLogToFile($"启动时长: {(startupCompleteHeartbeat - appStartupStartTime).TotalSeconds:F2}秒"); if (_isSplashScreenShown) {