Very slow update of the currentTimeMillis()

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.1
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: