title: Calculating the average traverse time for a graph in millisecond gives an inconceivable output?
body: <p>I'm making a performance test about search in graphs (between an adjacency list and adjacency matrix) to calculate average traverse time for whole graph in ms. </p>
  
  <p>However, the output gives a number that I havent seen before. Here is the simple algorithm of test.</p>
  
  <pre><code>   double startTime;
     double endTime;
     double processTime;
  
     double totalTime = 0;
     double averageTime = 0;
  
      for (int i = 0; i &lt; 100000; i++) {
  
  
          startTime = System.nanoTime();
  
          search.DFS(5);
  
          endTime = System.nanoTime();
  
          processTime = (endTime - startTime)/1000000;
  
          totalTime = totalTime + processTime;
      }
  
      averageTime = totalTime/100000;
  
      System.out.println("PROCESS TIME in AdjacencyMatrix = " + averageTime + " ms");
  </code></pre>
  
  <p>and the output looks like ;</p>
  
  <pre><code>PROCESS TIME in AdjacencyMatrix = 1.4765902999997995E-4 ms
  </code></pre>
  
  <p>When I traverse just one time the output gives convenient data like <code>0.032344 ms</code>.</p>