WEBVTT

00:00.180 --> 00:07.140
In this activity, you are going to practice with the time functionality using the ultrasonic sensor.

00:07.470 --> 00:09.390
So what do you need to do here?

00:09.600 --> 00:15.720
Well, you will measure the duration of the calls in function here.

00:16.420 --> 00:24.540
So what you can do is to measure directly inside dysfunction, to get to know exactly how long does

00:24.540 --> 00:31.530
this function take to execute and well to measure a duration you can use either middies to measure in

00:31.530 --> 00:35.650
milliseconds or micros to measure in microseconds here.

00:35.790 --> 00:40.990
Well, you can choose either of the two, but with micros, you will be a little bit more precise.

00:41.310 --> 00:47.550
So as a quick recap, you will need to measure the time before the action, the time after the action,

00:47.550 --> 00:50.600
and then make the difference to compute the duration.

00:50.910 --> 00:53.430
And I'm not talking about the duration here.

00:53.470 --> 00:55.890
Micros of the signal you receive.

00:56.220 --> 00:58.980
OK, I'm talking about this line of code.

00:59.020 --> 01:02.580
OK, how long does this line line 18.

01:02.970 --> 01:06.420
How long does this line of code takes to execute?

01:06.960 --> 01:07.310
All right.

01:07.320 --> 01:14.520
So if you are not sure, you can go back to the lesson on how to compute a duration, which is inside

01:14.520 --> 01:17.340
the section with the time functionalities.

01:17.670 --> 01:21.450
And then I will see you in the next lesson for the solution.
