comparison src/alice/test/codesegment/api/PeekCodeSegment.java @ 238:e4a5da56b394

minor change
author sugi
date Mon, 08 Apr 2013 15:29:24 +0900
parents bc451bb72d5a
children
comparison
equal deleted inserted replaced
237:2a019206c2f0 238:e4a5da56b394
10 info0.setKey(key); 10 info0.setKey(key);
11 } 11 }
12 12
13 @Override 13 @Override
14 public void run() { 14 public void run() {
15 if (StartCodeSegment.count>1000){ 15 if (StartCodeSegment.count>10000){
16 System.out.println(System.currentTimeMillis()-StartCodeSegment.t +" ms"); 16 System.out.println(System.currentTimeMillis()-StartCodeSegment.t +" ms");
17 StartCodeSegment.count = 0; 17 StartCodeSegment.count = 0;
18 18
19 if (++StartCodeSegment.cnt>1000){ 19 if (++StartCodeSegment.cnt>100){
20 System.exit(0); 20 System.exit(0);
21 } 21 }
22 } else { 22 } else {
23 if(StartCodeSegment.count==1)StartCodeSegment.t = System.currentTimeMillis(); 23 if(StartCodeSegment.count==1)StartCodeSegment.t = System.currentTimeMillis();
24 StartCodeSegment.count++; 24 StartCodeSegment.count++;