Skip to content
Extraits de code Groupes Projets
Valider 2b490a3e rédigé par Laurent Paucot's avatar Laurent Paucot
Parcourir les fichiers

time

parent b0e00f43
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #3955 réussi
......@@ -174,7 +174,7 @@ void *writing(void *param){
struct buffer_cw *param1 = (struct buffer_cw *) param;
while(param1->stop < 2 || param1->len > 0){
while(param1->stop < 3 || param1->len > 0){
sem_wait(&full2);
pthread_mutex_lock(&mutex2);
......
......@@ -28,7 +28,15 @@ void file_test(void){
return;
}
clock_t start, end;
double time;
start = clock();
int err = run("input.txt","actual_output.txt");
end = clock();
time = (double) (end - start) / CLOCKS_PER_SEC;
printf("Temps = %.2f secondes \n",time);
if (err == -1){
CU_FAIL("method run failed");
return;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter