1
00:00:00,450 --> 00:00:06,660
Let us try to understand how we use a preschooler right to preschoolers would be used to change the

2
00:00:06,660 --> 00:00:12,460
frequency of a clock that is provided to the timer block that we are utilizing, right?

3
00:00:12,480 --> 00:00:19,380
So you just be modifying our application so we do not now required a single instance of our application

4
00:00:19,380 --> 00:00:24,750
will be enough to demonstrate the use of a preschooler, so will be waiting for our timer to expire.

5
00:00:24,750 --> 00:00:28,740
And then we'll just be sending a message that time will expire.

6
00:00:29,010 --> 00:00:35,520
Now what we will be doing further is that it just declared one variable over here, so that would just

7
00:00:35,520 --> 00:00:40,380
be incrementing with an interval of hundred millisecond.

8
00:00:40,590 --> 00:00:47,160
So we are adding this variable just to keep the track of the time that we are consuming in a case when

9
00:00:47,160 --> 00:00:54,340
we have certain preschooler values and as we change our preschooler value, whether we able to see increase

10
00:00:54,360 --> 00:01:00,840
in this duration or increase in attempt values, religious declared one variable or for you, that is

11
00:01:00,840 --> 00:01:01,190
right.

12
00:01:01,320 --> 00:01:05,070
And let me just name this step rate will be initiating this to zero.

13
00:01:05,430 --> 00:01:10,380
The only modification that we did in our application is we are waiting, still waiting for our timer

14
00:01:10,380 --> 00:01:11,010
to expire.

15
00:01:11,280 --> 00:01:16,080
And at an interval of five hundred millisecond, we are preventing the temporal event.

16
00:01:16,410 --> 00:01:22,270
So at the end, when our timer expires, we will be mentioning timer expert and on with this.

17
00:01:22,770 --> 00:01:24,630
We'll also be displaying the.

18
00:01:25,640 --> 00:01:33,410
Democrat Rachel, that could be used to compare the value that we get when we change our risk in the

19
00:01:33,410 --> 00:01:36,530
right to to value a good person 0d.

20
00:01:36,950 --> 00:01:39,530
Then here you'll just be printing the temple, right?

21
00:01:39,800 --> 00:01:46,610
So let me just try to execute this school, OK, for the delay of five second.

22
00:01:46,640 --> 00:01:46,970
OK, yeah.

23
00:01:46,970 --> 00:01:49,450
And we haven't change the pre-schooler, right?

24
00:01:49,460 --> 00:01:51,860
Or let's just go ahead and call the police killer.

25
00:01:51,870 --> 00:01:52,460
All right.

26
00:01:52,460 --> 00:01:59,270
So if you go ahead, we have a police killer and if you just explore the definition of this killer function,

27
00:01:59,270 --> 00:02:02,750
so the function said the killer put the time and control register.

28
00:02:03,620 --> 00:02:08,960
The first argument is that an instance structure and the second argument is the peace killer value,

29
00:02:08,960 --> 00:02:12,560
which is it would value that set the peace killer to use, right?

30
00:02:12,830 --> 00:02:17,240
So you could specify the unit, which will behave as a pre-schooler, value it.

31
00:02:17,510 --> 00:02:22,220
And if you just observe the logic, you will clearly see by utilizing a shift of right.

32
00:02:23,030 --> 00:02:30,190
So that basically means the division factor that will be getting out of this will be power off.

33
00:02:30,270 --> 00:02:30,620
Right.

34
00:02:30,920 --> 00:02:36,380
So if we add one word here who that will divide our frequency by two days to one that it's two.

35
00:02:36,590 --> 00:02:41,080
So if you have additional frequency, ladies as you f want.

36
00:02:41,960 --> 00:02:44,300
OK, so if you add up this killer as well.

37
00:02:44,360 --> 00:02:50,380
So the new frequency will be the original frequency divide by two race to the three scalar value that

38
00:02:50,390 --> 00:02:52,580
you add seen argues we are adding one.

39
00:02:52,880 --> 00:02:55,670
So it will be original frequency divide by two.

40
00:02:56,000 --> 00:03:01,640
So if you add zero over here, so that will be original frequency divide by two is two zero, and that

41
00:03:01,640 --> 00:03:03,790
basically means we get an additional frequency.

42
00:03:03,990 --> 00:03:10,550
So let's just go ahead and call this function in our hello world or see again where we are configuring

43
00:03:10,550 --> 00:03:12,680
our timer there will be added.

44
00:03:13,760 --> 00:03:16,910
Deputy scalar value, all right, so this required two arguments.

45
00:03:17,660 --> 00:03:23,680
First argument is that instance actually you just GMR and then you would be scalar value, right?

46
00:03:23,690 --> 00:03:25,700
So that it just adds zero to it.

47
00:03:25,940 --> 00:03:31,640
Now we know that when we write and zero, so this will basically be giving us the original.

48
00:03:32,640 --> 00:03:37,720
Frequency they divide by two race to zero.

49
00:03:38,280 --> 00:03:43,220
This is because of the usage of the shift operation in the function, right?

50
00:03:43,230 --> 00:03:47,970
So this will be serving as a new frequency for us.

51
00:03:48,560 --> 00:03:53,750
Remember this, you know, we go and we build up our application project.

52
00:03:53,770 --> 00:03:54,060
Great.

53
00:03:55,360 --> 00:04:00,610
So once bail is successful, we select our debate configuration and click on Relaunch Button, right?

54
00:04:00,940 --> 00:04:06,820
So this will still be giving the delay of five second, because we have the original and new frequency.

55
00:04:07,270 --> 00:04:08,330
Exactly right.

56
00:04:08,410 --> 00:04:09,280
So we go ahead.

57
00:04:10,400 --> 00:04:17,030
And since we are all really connected by this serial terminal to the respect to come good and the also

58
00:04:17,030 --> 00:04:18,380
specified the correct word.

59
00:04:18,890 --> 00:04:21,050
We just need to click on this resume button, right?

60
00:04:21,050 --> 00:04:27,500
So you will see timer and it is successful timer self-test is successful and after a delay of five second.

61
00:04:28,690 --> 00:04:36,220
We will be getting the messages dimeric spite or delay five second, that you OK and team value that

62
00:04:36,220 --> 00:04:40,180
we are getting for this B scalar value is 11 right now.

63
00:04:40,180 --> 00:04:43,540
The next, you know, we let me just go ahead and use this to what, right?

64
00:04:43,540 --> 00:04:48,460
So once we do this now, we have to factor this as to one, we just right.

65
00:04:48,460 --> 00:04:54,760
So now we have the new frequency, which is going to a of block that is equal to half of the original

66
00:04:54,760 --> 00:04:59,530
frequency right now as the frequency becomes half our time.

67
00:04:59,530 --> 00:05:01,210
But it will be twice right.

68
00:05:01,210 --> 00:05:07,840
So here we are, getting the term value as 11 right now with this new pre-schooler, we will be.

69
00:05:08,860 --> 00:05:15,640
Expecting that twice the devil words compare to this rate, so let me just modify this quote now, we

70
00:05:15,640 --> 00:05:21,340
probably will be getting a 10 second delay, so we'll just be modifying this code and the deciding factor

71
00:05:21,340 --> 00:05:26,110
will be what is the value of time that we get when we perform the modification with the pre-schooler,

72
00:05:26,110 --> 00:05:26,350
right?

73
00:05:26,360 --> 00:05:28,270
So let me just again build a project.

74
00:05:29,660 --> 00:05:38,240
And as soon as our village sets us, so we select our diva configuration and then click on Relaunch,

75
00:05:38,240 --> 00:05:44,360
right, so this will be a good programming RPG and start the fresh instance of our debug session, right?

76
00:05:45,520 --> 00:05:52,030
Now we passed into law, we could just be keeping his eyes on this so that we could compare the previous

77
00:05:52,030 --> 00:05:54,070
value of them and the new value of them.

78
00:05:54,340 --> 00:05:57,220
So just go ahead and click on the resume button.

79
00:05:57,520 --> 00:06:00,750
So diameter data sets this will self-test is successful.

80
00:06:00,760 --> 00:06:02,650
Now we need to wait for 10.

81
00:06:02,650 --> 00:06:06,220
Second, OK for our timer to expire and then only.

82
00:06:07,150 --> 00:06:13,870
We could able to observe that often sitting on a console and along with the timer when the group actually

83
00:06:13,870 --> 00:06:16,600
see that we are getting twice the value of them.

84
00:06:16,990 --> 00:06:20,380
That's compared to our previous execution.

85
00:06:20,650 --> 00:06:22,750
So this is how we could use a preschooler.

86
00:06:22,750 --> 00:06:23,770
Remember the.

87
00:06:24,660 --> 00:06:28,710
No, or value that you specify in the case of a peace killer function.

88
00:06:28,800 --> 00:06:36,120
So this will be giving us the new frequency, which is original frequency divide by two race to the

89
00:06:36,810 --> 00:06:39,260
pre-schooler value that you specify, right?

90
00:06:39,270 --> 00:06:40,380
So this is an argument.

91
00:06:40,380 --> 00:06:44,460
So this is Bobrisky in value that you specify, right?

92
00:06:44,460 --> 00:06:49,470
So the new frequency will be original frequency divide by two is to be scalar value.
