JDK-4236825 : Very slow update of the currentTimeMillis()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.2.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-05-10
  • Updated: 1999-05-10
  • Resolved: 1999-05-10
Related Reports
Duplicate :  
Description

Name: skT88420			Date: 05/10/99


When I run the code below on a Solaris there is no problem.
The millis updates quickly and there is a very small gap between
each result. When I run this on a Windows 95 machine I get the 
same result a number of times and then it suddenly jumps 50-70
millis.Why is this? Is this a bug? Please help me!!!!!

----------------------------------------------------------------

public class timetest
{
public static void main(String argv[])
        {
            for(int l=0;l<10000;l++) {
                System.out.println("Time="+System.currentTimeMillis());
            }
            System.exit(0);
        }
}
(Review ID: 58026) 
======================================================================