/* ** main */ int main (int argc, char **argv) { STRING Name; double start; double stop; init_lumineur (argc, argv); strcpy (Name, NameScn); strcat (Name, ".scn"); start = getTime(); read_scn (Name); stop = getTime(); printf ("Temps de lecture : %e seconde(s)\n", stop - start); start = getTime(); bnd (); stop = getTime(); printf ("Temps du binder : %e seconde(s)\n", stop - start); start = getTime(); scn (); stop = getTime(); printf ("Temps de la scene : %e seconde(s)\n", stop - start); start = getTime(); img (NameScn); stop = getTime(); printf ("Temps de l'image : %e seconde(s)\n", stop - start); exit (0); }
/* ** main */ int main (int argc, char **argv) { STRING Name; struct timeval start; struct timeval stop; int my_rank; MPI_Init(&argc,&argv); MPI_Comm_rank(MPI_COMM_WORLD,&my_rank); init_lumineur (argc, argv); strcpy (Name, NameScn); strcat (Name, ".scn"); portable_gettimeofday(&start); read_scn (Name); portable_gettimeofday(&stop); if(my_rank==0){ printf ("Temps de lecture : %ld seconde(s)\n", stop.tv_sec - start.tv_sec); } portable_gettimeofday(&start); bnd (); portable_gettimeofday(&stop); if(my_rank==0){ printf ("Temps du binder : %ld seconde(s)\n", stop.tv_sec - start.tv_sec); } portable_gettimeofday(&start); scn (); portable_gettimeofday(&stop); if(my_rank==0){ printf ("Temps de la scene : %ld seconde(s)\n", stop.tv_sec - start.tv_sec); } portable_gettimeofday(&start); img (NameScn); portable_gettimeofday(&stop); printf ("Temps de l'image : %ld seconde(s)\n", stop.tv_sec - start.tv_sec); MPI_Finalize(); exit (0); }