Skip to content
Snippets Groups Projects
Commit 23870886 authored by Maxime's avatar Maxime
Browse files

add timer and optimization

parent deede19b
No related branches found
No related tags found
No related merge requests found
......@@ -47,3 +47,5 @@ Code/x64/Debug/JobShop.pdb
Code/.vs/Optimisation/v16/ipch/AutoPCH/5b92e4ffb9f8ba7d/SOLUTION.ipch
Code/.vs/Optimisation/v16/ipch/AutoPCH/b1df84d0928555dd/UTILS.ipch
Code/.vs/Optimisation/v16/ipch/AutoPCH/e8a72b0edec1539d/GESTION_GRAPHE.ipch
Code/JobShop/x64/Debug/solution.obj
Code/JobShop/x64/Debug/gestion_graphe.obj
......@@ -154,7 +154,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<Optimization>Disabled</Optimization>
<Optimization>MaxSpeed</Optimization>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
<Link>
......
......
......@@ -19,10 +19,15 @@ int main() {
bierwirth v = generateVector(graph.nb_pieces, graph.nb_machines);
sol.cost = INT16_MAX;
auto before = duration_cast<milliseconds>(system_clock::now().time_since_epoch());
grasp(&sol, graph, 666);
auto after = duration_cast<milliseconds>(system_clock::now().time_since_epoch());
affiche_solution(sol);
cout << "meilleur cout final : " << sol.cost << endl;
cout << after.count() - before.count() << " ms" << endl;
return 0;
}
\ No newline at end of file
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment