So caution is for you.
Can I use that time of day?
To determine a lifestyle.
So can you get them up there to measure the time between two particular instances?
So we will get them up, they'd gives us.
A number of seconds which have been elapsed, so take two, for example, I can take two variables.
One, I can use it to store it before executing a particular section and after that, execute our game,
call the time of day.
And again, I saw it in the second volume and then subtract it so I will get the elapsed.
So can I use it?
So let's see whether we can use it or not.
And simple example here.
So I take to structure and I'll start.
And so before executing my.
Particular logic, I call the time of day, and after executing my logic, I call the time of day so
you can start and stop it.
And so get that I'm using it just for a demonstration.
But here you can it can have any of your function if you want to measure the number of elapsed.
So if you want to measure the lifespan, you can have any function that you have for our demo.
I are.
And get.
So we wait until the user presses and then throw something.
So now, again, I can subtract subtractive seconds and microseconds so this can go on and you do because
we have second scan so this can go to get this, we have to have logic here.
So follow it.
Keep it simple.
So let me display the second slapstick and elapsed microseconds.
So let's run this.
So it has first stored Lurkey time, both time, no is waiting for user input.
And now you can say users.
They last time is 11 seconds and minuses because of the microseconds.
So you can write your own support function for this.
OK, let's leave about this.
So it gives us a loans again so this means we can use.
We can use get them off the.
For measuring their Ben.
Is there any tweak here, so suppose?
I have started my program, so I talk about time, but if I modify that beat, what happens?
What happens if a modified delayed?
So instead of keeping the eight?
To if I had a date one, a backwards what will be the value?
What will be the output?
So how can I modify the seafood's.
So the command for modifying the command from the.
Was it for the.
So the it that I went backwards, I can use this particular command to the date I find I can set.
Minus one hour.
So this current date is this, so if I want to set it to one hour back, I can use a particular command,
but I have to be somebody who's a.
So it has to you can see Prince that particular date, but let's verify the current date and date common.
But the date is back to the original date, so why it is not updated.
Let's try it again.
So it has set it back to one hour, but calling it showing the kind of not motivated and motivated,
why is it so?
Let's do it one more time.
It's not working.
So is there any other issue here?
So the issue here is there is something known as NPB network time protocol, which is what it does is
it will try to set the exact time coding the network.
So NDP protocol is running on background.
It seems that time is not matching the exact time and then it updates the time so far.
For example, let's stop the NDP service.
So this is a service which runs in the background.
It does all this, but this particular example.
Let's stop the service and stop the service for this, so how can I stop it?
So this is to stop this NBPA service.
This is the man, so we are using system based on this specific system, so system the I think is a
service that stop this individual from.
Now, let's modify the time.
And again, check back.
Now, you can see them has not updated it as it has the time, which we have.
So we have said it like the time when our back and the is the same thing.
That's not updated with updated each time, but at what time?
So now let's do an A..
So get cat is still waiting for an input that's even input.
And I can see it gives us minus three, four to six seconds, which is an all out elapsed then, so
it should not be a negative seconds, right?
Elapsed time should be almost 42 seconds.
So this is because we have.
You modify the time, that's the reason you get here and they get to elapsed then.
So let's take it back, the service, so it started back and use that.
Nobody can verify that it's the exact date and time I ask for the.
So what we have seen here is using the time of day, you cannot measure the elapsed time.
So.
If you program.
Need to measure their lifestyle.
You need a timer.
Which will give you the right answer, even if the user changes the time on the system clock.
So you need a timer which will give you the right answer even if the user changes them.
Time on the system clock.
So do we have that clock in Lennix that's.