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

RTJ clock

818943 Newbie
Currently Being Moderated
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?

Legend

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