public void createTree(string trainingPath, string trainingName, char separator) { Globals.stopWatch.Start(); DataSet trainingSet = new DataSet(trainingPath + "\\" + trainingName + ".txt", separator, true); Globals.stopWatch.Stop(); Globals.printElapsedTimeResetWatch(Globals.stopWatch.Elapsed, "Training data set"); Globals.stopWatch.Start(); Sprint sprint = new Sprint(trainingSet); Globals.stopWatch.Stop(); Globals.printElapsedTimeResetWatch(Globals.stopWatch.Elapsed, "Sprint created"); Globals.stopWatch.Start(); DecisionTree tree = sprint.createTree(); Globals.stopWatch.Stop(); Globals.printElapsedTimeResetWatch(Globals.stopWatch.Elapsed, "Tree created"); Globals.stopWatch.Start(); tree.saveToTxt(trainingPath, "Decision_Tree_" + trainingName); Globals.stopWatch.Stop(); Globals.printElapsedTimeResetWatch(Globals.stopWatch.Elapsed, "Saving tree to file"); }