فهرست منبع

Correction ordre affichage info solution

Loquicom 6 سال پیش
والد
کامیت
e974a8b199
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      Partie_1/Thread/GSATThread.cpp
  2. 1 1
      Partie_2/EMA/GSATThread.cpp
  3. 1 1
      Partie_2/Moyenne/GSATThread.cpp

+ 1 - 1
Partie_1/Thread/GSATThread.cpp

@@ -85,6 +85,7 @@ void GSATThread::printResult() {
 		calcTime = gsat[0]->realTime() - time[0];
 	}
 	printf(YELLOW);
+	printf("c real time : %.4f seconds\n", calcTime);
 	if(this->isEnd()) {
 		printf("c [thread:%2d][iteration:%4d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
 			result.threadId,
@@ -94,7 +95,6 @@ void GSATThread::printResult() {
 			result.nbSatisfiedClausesFill,
 			result.nbSatisfiedClausesSolve);
 	}
-  	printf("c real time : %.4f seconds\n", calcTime);
   	printf(RESET);
 }
 

+ 1 - 1
Partie_2/EMA/GSATThread.cpp

@@ -83,6 +83,7 @@ void GSATThread::printResult() {
 		calcTime = gsat[0]->realTime() - time[0];
 	}
 	printf(YELLOW);
+	printf("c real time : %.4f seconds\n", calcTime);
 	if(this->isEnd()) {
 		printf("c [thread:%2d][iteration:%4d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
 			result.threadId,
@@ -92,7 +93,6 @@ void GSATThread::printResult() {
 			result.nbSatisfiedClausesFill,
 			result.nbSatisfiedClausesSolve);
 	}
-  	printf("c real time : %.4f seconds\n", calcTime);
   	printf(RESET);
 }
 

+ 1 - 1
Partie_2/Moyenne/GSATThread.cpp

@@ -83,6 +83,7 @@ void GSATThread::printResult() {
 		calcTime = gsat[0]->realTime() - time[0];
 	}
 	printf(YELLOW);
+	printf("c real time : %.4f seconds\n", calcTime);
 	if(this->isEnd()) {
 		printf("c [thread:%2d][iteration:%4d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
 			result.threadId,
@@ -92,7 +93,6 @@ void GSATThread::printResult() {
 			result.nbSatisfiedClausesFill,
 			result.nbSatisfiedClausesSolve);
 	}
-  	printf("c real time : %.4f seconds\n", calcTime);
   	printf(RESET);
 }