Get system's current time

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • navS

    Get system's current time

    hey team,
    how do i get the system's current time in c or c++.
    can any body tell me the method or peace of code. I am in need of it,
    please.

    ]Thanks in advance
    naveen
  • Victor Bazarov

    #2
    Re: Get system's current time

    navS wrote:
    how do i get the system's current time in c or c++.
    There is that strangely named function, 'time'. RTFM please.
    can any body tell me the method or peace of code. I am in need of it,
    please.
    Also, your OS can provide more ways to get the current time; again, RTFM
    or ask in the newsgroup dedicated to your OS.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask

    Comment

    • asm23

      #3
      Re: Get system's current time

      navS wrote:
      hey team,
      how do i get the system's current time in c or c++.
      can any body tell me the method or peace of code. I am in need of it,
      please.
      >
      ]Thanks in advance
      naveen
      Please see here: http://www.cplusplus.com/reference/clibrary/ctime/
      But I think your OS will supply a more precise timer just like Victor said.

      Comment

      Working...