Let us try to understand how we use a preschooler right to preschoolers would be used to change the
frequency of a clock that is provided to the timer block that we are utilizing, right?
So you just be modifying our application so we do not now required a single instance of our application
will be enough to demonstrate the use of a preschooler, so will be waiting for our timer to expire.
And then we'll just be sending a message that time will expire.
Now what we will be doing further is that it just declared one variable over here, so that would just
be incrementing with an interval of hundred millisecond.
So we are adding this variable just to keep the track of the time that we are consuming in a case when
we have certain preschooler values and as we change our preschooler value, whether we able to see increase
in this duration or increase in attempt values, religious declared one variable or for you, that is
right.
And let me just name this step rate will be initiating this to zero.
The only modification that we did in our application is we are waiting, still waiting for our timer
to expire.
And at an interval of five hundred millisecond, we are preventing the temporal event.
So at the end, when our timer expires, we will be mentioning timer expert and on with this.
We'll also be displaying the.
Democrat Rachel, that could be used to compare the value that we get when we change our risk in the
right to to value a good person 0d.
Then here you'll just be printing the temple, right?
So let me just try to execute this school, OK, for the delay of five second.
OK, yeah.
And we haven't change the pre-schooler, right?
Or let's just go ahead and call the police killer.
All right.
So if you go ahead, we have a police killer and if you just explore the definition of this killer function,
so the function said the killer put the time and control register.
The first argument is that an instance structure and the second argument is the peace killer value,
which is it would value that set the peace killer to use, right?
So you could specify the unit, which will behave as a pre-schooler, value it.
And if you just observe the logic, you will clearly see by utilizing a shift of right.
So that basically means the division factor that will be getting out of this will be power off.
Right.
So if we add one word here who that will divide our frequency by two days to one that it's two.
So if you have additional frequency, ladies as you f want.
OK, so if you add up this killer as well.
So the new frequency will be the original frequency divide by two race to the three scalar value that
you add seen argues we are adding one.
So it will be original frequency divide by two.
So if you add zero over here, so that will be original frequency divide by two is two zero, and that
basically means we get an additional frequency.
So let's just go ahead and call this function in our hello world or see again where we are configuring
our timer there will be added.
Deputy scalar value, all right, so this required two arguments.
First argument is that instance actually you just GMR and then you would be scalar value, right?
So that it just adds zero to it.
Now we know that when we write and zero, so this will basically be giving us the original.
Frequency they divide by two race to zero.
This is because of the usage of the shift operation in the function, right?
So this will be serving as a new frequency for us.
Remember this, you know, we go and we build up our application project.
Great.
So once bail is successful, we select our debate configuration and click on Relaunch Button, right?
So this will still be giving the delay of five second, because we have the original and new frequency.
Exactly right.
So we go ahead.
And since we are all really connected by this serial terminal to the respect to come good and the also
specified the correct word.
We just need to click on this resume button, right?
So you will see timer and it is successful timer self-test is successful and after a delay of five second.
We will be getting the messages dimeric spite or delay five second, that you OK and team value that
we are getting for this B scalar value is 11 right now.
The next, you know, we let me just go ahead and use this to what, right?
So once we do this now, we have to factor this as to one, we just right.
So now we have the new frequency, which is going to a of block that is equal to half of the original
frequency right now as the frequency becomes half our time.
But it will be twice right.
So here we are, getting the term value as 11 right now with this new pre-schooler, we will be.
Expecting that twice the devil words compare to this rate, so let me just modify this quote now, we
probably will be getting a 10 second delay, so we'll just be modifying this code and the deciding factor
will be what is the value of time that we get when we perform the modification with the pre-schooler,
right?
So let me just again build a project.
And as soon as our village sets us, so we select our diva configuration and then click on Relaunch,
right, so this will be a good programming RPG and start the fresh instance of our debug session, right?
Now we passed into law, we could just be keeping his eyes on this so that we could compare the previous
value of them and the new value of them.
So just go ahead and click on the resume button.
So diameter data sets this will self-test is successful.
Now we need to wait for 10.
Second, OK for our timer to expire and then only.
We could able to observe that often sitting on a console and along with the timer when the group actually
see that we are getting twice the value of them.
That's compared to our previous execution.
So this is how we could use a preschooler.
Remember the.
No, or value that you specify in the case of a peace killer function.
So this will be giving us the new frequency, which is original frequency divide by two race to the
pre-schooler value that you specify, right?
So this is an argument.
So this is Bobrisky in value that you specify, right?
So the new frequency will be original frequency divide by two is to be scalar value.