title: Reading into linked list takes twice the time when also reading into hash table
body: <p>Sorry about the title, this problem is quite hard to explain in one line. I have words being read from a .txt file and being placed into both a linked list and a hash table. I am also using a clock to record the time spent performing each function.</p>
  
  <pre><code>listclock = clock();
  list = insertlist(list, word);
  listclock = clock() - listclock;
  listtime = listtime + listclock;
  
  tableclock = clock();
  table = inserttable(table, word);
  tableclock = clock() - tableclock;
  tabletime = tabletime + tableclock;
  </code></pre>
  
  <p>If I comment out the 2nd line where the insert list function is being called then I get the following values for tabletime and tableclock: 0s, and 0.03s</p>
  
  <p>If I comment out the line with inserttable I get the following values: 6.34s and 0.02s</p>
  
  <p>If I let them both run I get the following values: 12.39s and 0.04s</p>
  
  <p>Is there a reason the time for executing the table function doubles when the hash table function is running also?</p>
  
  <p>Insertlist function: (Inserttable function calls this):</p>
  
  <pre><code>List *insertlist(List *list, char word[30]) {
    List *templist = list;
    while(templist != NULL) {
      if(strcmp(templist-&gt;word, word) == 0) {
        templist-&gt;count++;
        list = addnode(list, word);
        list-&gt;count = templist-&gt;count;
        break;
      }
      templist = templist-&gt;next;
    }
    if(templist == NULL) {
      list = addnode(list, word);
    }
    return list;
  }
  </code></pre>