public static long QuickSortTime(float[] array, TimeType type) => QuickSortAlgorithm.Time(array, type); //returns time /// <summary> /// Returns prepared message of duration in ticks. /// </summary> /// <param name="array">Float array to sort.</param> /// <param name="type">Type of returned duration.</param> public static string QuickSortTimePrint(float[] array, TimeType type) { if (type == TimeType.Both) { return(string.Format("Quick Sorting Duration: {0} Miliseconds / {1} Ticks.", QuickSortAlgorithm.Time(array, TimeType.Miliseconds), QuickSortAlgorithm.Time(array, TimeType.Ticks))); //returns preprepared messageof time } return(string.Format("Quick Sorting Duration: {0} {1}", QuickSortAlgorithm.Time(array, type), type == TimeType.Ticks ? "Ticks." : "Miliseconds.")); //returns preprepared message of time }
/// <summary> /// Returns duration of algorithm calculations in ticks. /// </summary> /// <param name="array">Float array to sort.</param> /// <param name="type">Type of returned duration.</param> public static long QuickSortTime(float[] array, TimeType type) => QuickSortAlgorithm.Time(array, type); //returns time