long result = res.testTime;
long result = res.endTime - res.startTime;
   public void testQueue2()   {      log.info("Running test Queue2");            try      {         SenderJob sender = createDefaultSenderJob(queueName);         sender.setNumMessages(numMessages);         sender.setMsgSize(standardMessageSize);         sender.setMf(new BytesMessageMessageFactory());         sender.setTransacted(false);         sender.setDeliveryMode(DeliveryMode.PERSISTENT);                  JobResult res = runJob(sender);                  if (!checkResult(res, "Queue2"))         {            return;         }                  long result = res.testTime;                  Execution execution = createExecution("Queue2");                  execution.addMeasurement(new Measurement("msgsSentPerSec", 1000 * (double)numMessages / result));         pm.saveExecution(execution);                  log.info("Test Queue2 finished");      }      finally      {         drainQueue(queueName);      }   }