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
Post a Comment