- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
long[] times = new long[9];
times[0] = System.currentTimeMillis();
initPsrList();
times[1] = System.currentTimeMillis();
initPsrHierarchy();
times[2] = System.currentTimeMillis();
initPsrCheckList()
times[3] = System.currentTimeMillis();
initTranslationTables();
times[4] = System.currentTimeMillis();
initTranslationInfo()
times[5] = System.currentTimeMillis();
initVoltage();
times[6] = System.currentTimeMillis();
initElectroMetterPrecision();
times[7] = System.currentTimeMillis();
initMeasTransformers();
times[8] = System.currentTimeMillis();
long diff;
System.out.println("\n\n\n\n******************************************************************");
diff = times[1] - times[0];
System.out.println("-- initPsrList() = " + diff + "ms");
diff = times[2] - times[1];
System.out.println("-- initPsrHierarchy() = " + diff + "ms");
diff = times[3] - times[2];
System.out.println("-- initPsrCheckList() = " + diff + "ms");
diff = times[4] - times[3];
System.out.println("-- initTranslationTables() = " + diff + "ms");
diff = times[5] - times[4];
System.out.println("-- initTranslationInfo() = " + diff + "ms");
diff = times[6] - times[5];
System.out.println("-- initVoltage() = " + diff + "ms");
diff = times[7] - times[6];
System.out.println("-- initElectroMettersPrecision() = " + diff + "ms");
diff = times[8] - times[7];
System.out.println("-- initMeasTransformers() = " + diff + "ms");
diff = times[8] - times[0];
System.out.println("total = " + diff + "ms");
System.out.println("\n******************************************************************\n\n\n\n ");