Code example for Stopwatch

0
 
  @Test
  public void testLoad() throws Exception {
    ClientRecommender client = getClient();
    LoadRunner runner = new LoadRunner(client, getTestTempDir(), 5000);
    Stopwatch stopwatch = new Stopwatch().start();
    runner.runLoad();
    assertTrue(stopwatch.elapsed(TimeUnit.MILLISECONDS) < 40 * runner.getSteps());
  } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java