public class MRes{
public static void main(String[]args){
long smallestDelta=Long.MAX_VALUE;
long start=System.currentTimeMillis();
long current=start;
long last=start;
long delta;
System.out.println("testing...");
while(current-start<5000){
current=System.currentTimeMillis();
delta=current-last;
if(delta!=0&&delta<smallestDelta)
smallestDelta=delta;
last=current;
}
System.out.println(System.getProperty("os.name")+" ["+
System.getProperty("os.version")+"]["+System.getProperty("os.arch")+"]"
);
System.out.println("smallest delta: "+smallestDelta+"msec");
}
}
gives me:
testing...
Windows 2000 [5.0][x86]
smallest delta: 10msec
… is there a RFE or bug report on this? It has to be.