(hpi) Need higher resolution System.currentTimeMillis on Win32

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.1, 1.1.2, 1.1.5, 1.2.0, 1.2.1
    • Component/s: hotspot
    • None
    • generic, x86
    • generic, windows_95, windows_nt

      IN JDK1.1 and 1.2, System.currentTimeMillis has a resolution of 50ms. This
      is too inaccurate for many purposes. Here is a test program:

      > class timeres {
      >
      > public static void main(String args[]) {
      >
      > long t1;
      > long t2;
      > t1 = System.currentTimeMillis();
      > t2 = t1;
      > while (t2==t1)
      > t2 = System.currentTimeMillis();
      > System.out.println("Time difference is "+(t2-t1));
      > }
      > }

            Assignee:
            Hong Zhang
            Reporter:
            Sheng Liang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: