So the family as the storm clock, which tells the time of day, call it as the all time clock for 4:00,
5:00 audiogram time, which there is a clock which tells the time of the city log were very real, 10:00
or 11:00.
But if you want to measure elapsed time safely, you need a clock which sticks out time continuously
without any jumps when they use a that system.
So this kind of clock we call as monotonic clock, so know we have to cancel the alarm clock and the
second clock, which will not be affected when the user serves.
No time.
Just in time.
So if I want to use the modem log.
The EPA is different, this clock could get time, so this particular EPA function can be used to retrieve
the time from various clocks.
It can also use to include this can include the time clock, also the clock.
So the first argument is which clock from which I have to read.
And the second is where the value of the time is.
So it uses a different structure and we below we have time of day abused, stopped by bad.
By the time it uses a different structure, stuck times back then spit.
So difference is, it is higher position stockpile than it has a position of microseconds, but he has
cut times.
You can see it has a precision of nanoseconds.
And this particular function, it's the first barometer of Lockerby, is used to request specific clocks.
So these are the differences between clock, the time versus the time of day.
But monotonic clock, we have the clock underscored on that score, monotonic as an argument.
Let's verify whether this is a system call or a library called Uzman.
And is a system called.
So let's again run an example and then we can see what happens.
So the same example which previously we used get them of the now lets users log on the time clock and
also get them use instead of time, you'll be using the first barometer's clock and MySQL monotonic.
You have that you have and.
And the same thing that can.
So the same program, instead of using the time of day, we use clock on this time, which is better,
it has different kinds of clocks and we are using atomic clock.
It also has a precision of nanoseconds.
So again, we have yet nanoseconds.
So let's now do the same operation, it's this program.
It was a program.
The default is so it has matured, it is like three seconds and this many nanoseconds like us.
The next title, a big debating time, let's set it back one hour back so far that we have to stop the
service.
And now we send it back to of our.
And now you can see it this time it gives us the perfect time, the amount of time it took for in between
the get get the first time in the second block.
So using clock on the monotonic or not on the clock, you can measure the elapsed time.
So you cannot measure the elapsed time using wall clock because of the constraints of time at any time.
So you have to use a special clock, which is known as a clock using which you can measure that elapsed
time.
Let's start with that.