Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4236825

Very slow update of the currentTimeMillis()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • core-libs
    • generic
    • generic



      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)
      ======================================================================

            apalanissunw Anand Palaniswamy (Inactive)
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: