Time Library | C Programming Tutorial

preview_player
Показать описание
A demonstration of the time.h library functions in C.

Рекомендации по теме
Комментарии
Автор

46 years as a software developer (over half doing C/C++) and this is the most succinct and complete example of the UNIX/LINUX time code without the pages and pages of boilerplate. You are a true craftsman!

warplanner
Автор

I've been searching a video to print current time of my system from past 2 days.
Then, suddenly your video got recommended today and I must say that this video is an upgrade of what I wanted in first place.

Best tutorial on this topic.❤
Thanks a lot.

khetanshusingh
Автор

Thank you so much for making this video! I can't even explain how helpful this was.

nickklotz
Автор

I've been looking for a channel like this for a very long time!!! Thank you so much for making this video!!!

ublue
Автор

You are eminent at doing this stuff! Thanks for sharing. Very much.

mortenlund
Автор

very good video, been looking after content like this of c programming during weeks and wasn't able to find anything good enough like this

thundercloud-
Автор

Thank you for the great video I was playing around with this for hours and learnt so much. With the strftime() function all of the format specifiers are identical to those given in the man page for the date command. The specifiers for its default output are "%a %d %b %Y %X %Z" if anyone is interested. Hope this helps

towtruckn
Автор

The "strftime()" at @16:50 comes in very handy for embedded designers because they can specifically tailor the output based on various features requirements. I will definitely consider using it in my next project. In embedded design we usually use a chip called Real-Time-Clock (RTC) and follow instructions on data sheet to how to format the output. This makes it very powerful to interface the RTC of the PC with the Embedded device for real embedded action.

fifaham
Автор

You are awesome.
You explained it very simply.
I am no words for thanking you.
Love you man ❤️❤️.

TheSquareClasses
Автор

@20:24 This is very useful to measure events or signal parameters, we call it Timer Capture and Compare in Embedded design, where the MCU counts the number of clocks elapsed between the start of measuring time and the end of measurement, or counting the number of clocks over the incident latency. We use the Capture and Compare to also create certain wave forms with specific parameters and accuracy of near microsecond.

fifaham
Автор

Thanks for this awesome and useful video!

sigmage
Автор

I echo the other comments. Excellent C tutorial. Thank you for putting it together.

shvideo
Автор

This helped, thank you for the time and effort.

dewaldesterhuysen
Автор

Cool video! I really needed it, thanks!

alonsomadronal
Автор

Thank you very much for making this video ... It's helped me a lot 😊

golladhanushkumar
Автор

Thank you very much. It was very helpful.

exprim
Автор

great vid - love how you described epoch

cd-stephen
Автор

ty for the vid, def helped me out for my coding lab lol

HamzahChaudhry
Автор

I just put sleep(1) between the start and end clocks expecting the total after to around 1.0s but I got much smaller values. What am I missing. Also if I execute the program multiple times the value for total varies even though sleep(1) should a constant time. Are the clock ticks not constant? Or maybe the waiting that the sleep function executes does not prevent the next clock to be executed somehow? Ah, so if sleep pauses the execution of a program would that mean that it stops somehow counting the clock ticks? so the value for the end clock is then not the one for the amount of ticks that would have been executed in the 1 sec equivalent?

vicsteiner
Автор

How can i calculate time on my own only using time () ?

Without using any other Libraries and functions

Aysx.