Hello,
I want to write a simple app, which can tell me how long a signal needs to be transferred from one XBee module to another.
I’m using two XBee Pro S2B modules.
My first intent was to
-
send a string from module A to module B,
1a. meanwhile start a timer -
then send an automatic response from B to A
-
recognize the incomming string as the automated answer
-
meassure delta of time from 1. to 3.
I implemented this and it works fine - except measuring the time… the clock() method of C isn’t working well. It always puts out “-1” … [:(]
Does anyone have an idea of where the problem could be?
Is there a possibility to measure time between two actions?
Regards,
christian