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;
|
}
|
|
}
|
}
|