src/find.c
//prints the elapsed time during files and directories elaboration
prints the elapsed time during files and directories elaboration
prints the elapsed time during files and directories elaboration
void elapsedTime(char **appDir, fList *list){
    double time_taken = 0;
    tFile = clock() - tFile;
    time_taken = ((double)tFile)/CLOCKS_PER_SEC;
    printf("Terminate processing file: %s (%f)\n", list->path, time_taken);
    if(list->next == NULL || (appDir != NULL && (strcmp(*appDir, list->next->directory)) != 0)){
        tDirectory = clock() - tDirectory;
        time_taken = ((double)tDirectory)/CLOCKS_PER_SEC; 
        printf("Terminate processing directory: %s (%f)\n", *appDir, time_taken);
    }
}
void elapsedTime ( char * * appDir , fList * list ) { double time_taken = 0 ; tFile = clock ( ) - tFile ; time_taken = ( ( double ) tFile ) / CLOCKS_PER_SEC ; printf ( " \n " , list -> path , time_taken ) ; if ( list -> next == NULL || ( appDir != NULL && ( strcmp ( * appDir , list -> next -> directory ) ) != 0 ) ) { tDirectory = clock ( ) - tDirectory ; time_taken = ( ( double ) tDirectory ) / CLOCKS_PER_SEC ; printf ( " \n " , * appDir , time_taken ) ; } }
prints the elapsed time during files and directories elaboration
prints the elapsed time during files and directories elaboration
//if the next file is located into a different directory, prints the current directory elaboration time