forked from KNEMC/KLALB
优化代码,性能暴涨
This commit is contained in:
@@ -55,7 +55,7 @@ private ReentrantLock lock=new ReentrantLock();
|
||||
//System.out.println(delta+" "+currentTime+" "+taccurace);
|
||||
}else {
|
||||
accuracy=(accuracy*9999+taccurace)/10000;
|
||||
}
|
||||
}
|
||||
}
|
||||
public void calibrate2(long delta,long taccurace) {
|
||||
if(accuracy==Long.MAX_VALUE||taccurace<= accuracy) {
|
||||
@@ -71,4 +71,5 @@ private ReentrantLock lock=new ReentrantLock();
|
||||
accuracy=(accuracy*9999+taccurace)/10000;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user