压力测试优化2

This commit is contained in:
hsc
2026-06-26 10:04:57 +08:00
parent f83c93fcf9
commit 52edf16176
4 changed files with 51 additions and 10 deletions

View File

@@ -50,13 +50,11 @@ namespace ADP.ViewModels
set => SetProperty(ref _IsLeftDrawerOpen, value);
}
// 代理属性:动态反映当前被激活的 Scope 状态
public TimeSpan RunningTime
{
get
{
if (CurrentContext == null) return TimeSpan.Zero;
// 💡 核心:如果当前工位的计时器正在跑,动态累加 SW 当前的时间,否则返回其保存的固定时间值
return CurrentContext.SW.IsRunning ? CurrentContext.SW.Elapsed : CurrentContext.RunningTime;
}
set