This discussion is archived
0 Replies Latest reply: Jan 24, 2011 5:02 AM by 818943 RSS

RTJ clock

818943 Newbie
Currently Being Moderated

Suppose i have this :

AbsoluteTime t1=Clock.getRealtimeClock().getTime();
//do some work
AbsoluteTime t2=Clock.getRealtimeClock().getTime();

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?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points