int main (int argc, char** argv) { InputParameters param; try { cin >> param; } catch (const std::exception& e) { cerr << "Error: " << e.what() << endl; } // print stuff for testing if (pfverbose) cout << param << endl; MaxLagVect maxLags(param.numTasks()); Schedule s(param.numResources(), param.scheduleTime(), param.numTasks()); const clock_t tbegin = clock(); { algoPF(s, param.tasks(), maxLags); } const clock_t tend = clock(); const double elapsed_secs = double(tend - tbegin) / (double) CLOCKS_PER_SEC; cout << "Completed Algo PF in " << elapsed_secs << " seconds.\nSchedule:\n"; outputSchedule(std::cout, param.tasks(), s); outputMaxLags(std::cout, param.tasks(), maxLags); ofstream ganttFile("gantt.txt"); s.createPlotData(ganttFile, param.tasks()); return 0; }