VM.sysWrite("ns); cycles: ");VM.sysWrite(cycles,false); VM.sysWrite("(",averageCycles);VM.sysWrite(")\n");
VM.sysWrite("ns); cycles: ");VM.sysWriteLong(cycles); VM.sysWrite("(",averageCycles);VM.sysWriteln(")");
  private static void accessTest(int iterations, int cycle_counter, boolean jni)   {    //-#if RVM_WITH_HPM    // time in seconds    double startTime = VM_Time.now();    if (jni == JNI) {      Java2HPM.resetCounters();      Java2HPM.startCounting();    } else {      VM.sysCall0(VM_BootRecord.the_boot_record.sysHPMresetCountersIP);      VM.sysCall0(VM_BootRecord.the_boot_record.sysHPMstartCountingIP);    }    for (int i = 0; i < iterations; i++) {	      if (jni == JNI) {	Java2HPM.test();      } else {	VM.sysCall0(VM_BootRecord.the_boot_record.sysHPMtestIP);      }    }    long cycles;    if (jni == JNI) {      cycles = Java2HPM.getCounterValue(cycle_counter);    } else {      cycles = VM.sysCall_L_I(VM_BootRecord.the_boot_record.sysHPMgetCounterIP,cycle_counter);    }    double endTime = VM_Time.now();    // time in milliseconds    double time          = (endTime - startTime)*1000;    VM.sysWriteln("\ttime "+time+" = (end "+endTime+" - start "+startTime+")/1000");    // time in nano seconds     double averageTime   = sixDigitDecimal((time / (double) iterations)*1000000);    double averageCycles = ((cycles*100)/iterations)  / (double) 100;    if (jni == JNI) {      VM.sysWrite("   JNI     accessTest(      ");    } else {      VM.sysWrite("   sysCall accessTest(      ");    }    VM.sysWrite(iterations,false);VM.sysWrite(",",cycle_counter);    VM.sysWrite(")    time: total ",time);VM.sysWrite("ms (",averageTime);    VM.sysWrite("ns); cycles: ");VM.sysWrite(cycles,false);    VM.sysWrite("(",averageCycles);VM.sysWrite(")\n");    //-#endif  }