/* / Author: Haytham Alsaghayer / Class: MA 5903 / Date: July 20, 2009 / Assignment: Count B */ #include "Header.h" int main(int argc, char *argv[]) { //to mesure time time_t t1_seconds, t2_seconds; // start timer struct timeval tim; gettimeofday(&tim, NULL); double t1=tim.tv_sec+(tim.tv_usec/1000000.0); //count pairs of chars countPairs(); // end timer gettimeofday(&tim, NULL); double t2=tim.tv_sec+(tim.tv_usec/1000000.0); //print result printf("\n%.6lf seconds elapsed to finish the job.\n", t2-t1); return 0; }