private static double GetPPD(TimeSpan frameTime, Protein protein, bool calculateUnitTimeByFrameTime) { if (calculateUnitTimeByFrameTime) { var unitTime = TimeSpan.FromSeconds(frameTime.TotalSeconds * protein.Frames); return(protein.GetBonusPPD(frameTime, unitTime)); } return(protein.GetPPD(frameTime)); }
protected static double GetPPD(Protein protein, TimeSpan frameTime, bool calculateBonus) { if (calculateBonus) { var unitTime = TimeSpan.FromSeconds(frameTime.TotalSeconds * protein.Frames); return(protein.GetBonusPPD(frameTime, unitTime)); } return(protein.GetPPD(frameTime)); }