if (!checkResults(results, "QueueScale3")) { return; }  long totalTimeTaken = results[1].endTime - results[0].startTime;
long totalTimeTaken = results[1].getEndTime() - results[0].getStartTime();
   public void testQueueScale3()   {      log.info("Running test testQueueScale3");            Execution execution = createExecution("QueueScale3");                  for (int i = 1; i <= scaleNumber; i++)      {         log.trace("Running with " + i + " session(s)");                  SenderJob sender = createDefaultSenderJob(queueName);         sender.setNumMessages(numMessages);         sender.setMsgSize(standardMessageSize);         sender.setMf(new TextMessageMessageFactory());         sender.setTransacted(false);         sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT);         sender.setNumConnections(1);         sender.setNumSessions(i);                        ReceiverJob receiver = createDefaultReceiverJob(queueName);         receiver.setAckMode(Session.AUTO_ACKNOWLEDGE);         receiver.setTransacted(false);         receiver.setNumMessages(numMessages * i);                           JobResult[] results = runJobs(new Job[] {sender, receiver});                  if (!checkResults(results, "QueueScale3"))         {            return;         }                  long totalTimeTaken = results[1].endTime - results[0].startTime;                  int totalMessages = i * numMessages;                  Measurement measure = new Measurement("throughput", 1000 * (double)totalMessages / totalTimeTaken);         measure.setVariableValue("numberOfSessions", i);         execution.addMeasurement(measure);      }            pm.saveExecution(execution);            log.info("Test testQueueScale3 finished");         }