Contiki difference between RTIMER_NOW() and clock_time()

Viewed 1425

I would like to know the difference between

RTIMER_NOW() 

and

clock_time() 

function.

  1. Can I store the values they return in an int variable?
  2. Do they return the time referred to the whole simulation or to the single mote that call them? If a mote starts its main process 5 sec after the first event in the simulation, does these functions return the value of the simulation or the (value of simulation - 5 sec)?

Thank you.

1 Answers
Related