0 Replies Latest reply: Jan 24, 2011 7:02 AM by 818943 RSS

    RTJ clock

    818943
      Hi.

      Suppose i have this :

      AbsoluteTime t1=Clock.getRealtimeClock().getTime();
      //do some work
      AbsoluteTime t2=Clock.getRealtimeClock().getTime();
      System.out.print(t2.subtract(t1));

      and the task between the two timestamps is executed in 5ms.

      Can RTJ guarantee that t2.subtract(t1) returns 5ms or due to unlucky scheduling of system calls it can be another value?