ningshuxia
2025-04-22 1519533649b43337d214523f7cd075edf237b3f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Collections.Generic;
 
namespace IStation.Algorithm.Source
{
    public class PumpsScheduleHelper
    {
        public static List<PumpSchedulingPlan> Calculate(PumpSchedulingParams schedulingParams, out string msg)
        {
            DateTime startTime = DateTime.Now;
            List<PumpSchedulingPlan> plans = PumpScheduling.Run(schedulingParams);//·Öʱ¶Îµ÷¶È¼Ç¼ 
            double timeSpan = (DateTime.Now - startTime).TotalSeconds;
            msg = $"ÔËÐбÃ×éÓÅ»¯µ÷¶ÈÍê±Ï£¬ºÄʱ[{timeSpan.ToString("0.#")}]Ãë";
            return plans;
        }
 
    }
}