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

(hpi) Need higher resolution System.currentTimeMillis on Win32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.1, 1.1.2, 1.1.5, 1.2.0, 1.2.1
    • 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));
      > }
      > }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: