In this activity, you are going to practice with the time functionality using the ultrasonic sensor.
So what do you need to do here?
Well, you will measure the duration of the calls in function here.
So what you can do is to measure directly inside dysfunction, to get to know exactly how long does
this function take to execute and well to measure a duration you can use either middies to measure in
milliseconds or micros to measure in microseconds here.
Well, you can choose either of the two, but with micros, you will be a little bit more precise.
So as a quick recap, you will need to measure the time before the action, the time after the action,
and then make the difference to compute the duration.
And I'm not talking about the duration here.
Micros of the signal you receive.
OK, I'm talking about this line of code.
OK, how long does this line line 18.
How long does this line of code takes to execute?
All right.
So if you are not sure, you can go back to the lesson on how to compute a duration, which is inside
the section with the time functionalities.
And then I will see you in the next lesson for the solution.