#include #include int main() { // start and stop are declared as clock variables clock_t start1, start2, stop1, stop2; start1 = clock(); // Do search and binary search stuff stop1 = clock(); start2 = clock(); // Do hashing stuff stop2 = clock(); cout << "Search and binary search time is " << (double)(stop1-start1)/CLOCKS_PER_SEC << endl; cout << "Hashing time is " << (double)(stop2-start2)/CLOCKS_PER_SEC << endl; }