Commit d6862d28 authored by Maxime POULAIN's avatar Maxime POULAIN
Browse files

add time stamp

parent b7e914b6
......@@ -154,6 +154,8 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<Optimization>Disabled</Optimization>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
......
......@@ -4,16 +4,20 @@
#include "utils.h"
#include <iostream>
#include <vector>
#include <chrono>
using namespace std;
using namespace std::chrono;
int main() {
srand(21058497);
t_graphe graph;
graph = lecture_fichier("la01.txt");
int best = INT16_MAX;
auto before = duration_cast<milliseconds>(system_clock::now().time_since_epoch());
for (int i = 0; i < 100; i++)
{
......@@ -27,7 +31,9 @@ int main() {
}
}
auto after = duration_cast<milliseconds>(system_clock::now().time_since_epoch());
cout << best << endl;
cout << after.count() - before.count() << " ms" << endl;
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment