6 Replies Latest reply on Jun 5, 2009 7:59 AM by Clebert Suconic


    Clebert Suconic Master

      I'm writing a native call to nanoSleep.

      As we have talked over IRC, I'm measuring the precision, and the weight of JNI calls.

      I have made a bunch of tests:

      My conclusion is that it is close enough for 20K.

      Follows a table:

      Time IntervalNumber Of LoopsTime Taken

      01,000,00017 milliseconds

      1000 nanosecond1,000,0003856 milliseconds

      20 K nanosecond1,000,00023312 milliseconds