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

(hpi) Need higher resolution System.currentTimeMillis on Win32

    XMLWordPrintable

    Details

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

      Description

      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));
      > }
      > }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: