freebsd - most efficient way to get current time/date/day in C -


What is the most effective way to get current time / date / day / year in C language? As I have performed it many times, I need a real efficient way. I am on free BSD.

Thanks in advance.

Standard C provides only one way to get time - time () < / Code> - which can be changed in a time / date / year with local time () or gmtime () . It is trivial, this will be the most effective way.

Any other methods are operating systems specific, and you have not told us what operating system you are using.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -