- for (int i = 0; i < 14; i++){
- gettimeofday(&t1,NULL);
- is = csa->IsContains((unsigned char*) words[i].c_str());
- gettimeofday(&t2,NULL);
- time = ((t2.tv_sec - t1.tv_sec) * 1000000.0
- + (t2.tv_usec - t1.tv_usec))/1000.0;
+ for (unsigned int i = 0; i < (sizeof(words)/sizeof(char*)) ; i++){
+
+ STARTTIMER();
+ is = tc->IsContains((unsigned char*) words[i].c_str());
+ STOPTIMER();
+ time = GETTIME();