Find the answer to your Linux question:
Results 1 to 2 of 2
Hi There 1. what is the timer resolution (GETTIMEOFTHEDAY() RESOLUTION ) 2. where we need this exactly 3. what is the use of the timer resolution if any one can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    1

    Regarding the timer resolution EX: GETTIMEOFTHEDAY() RESOLUTION


    Hi There


    1. what is the timer resolution (GETTIMEOFTHEDAY() RESOLUTION )
    2. where we need this exactly
    3. what is the use of the timer resolution


    if any one can explain with example please

    thanking you
    Reddy

  2. #2
    Linux User
    Join Date
    Nov 2008
    Location
    Tokyo, Japan
    Posts
    260
    Just do "man gettimeofday", or if that fails, Google "Linux manual gettimeofday".

    Notice that "struct timeval" has only two fields: tv_sec field is commented plainly with the word "seconds" and the "tv_usec" field is commented plainly with the word "microseconds".

    1. So I think this means the resolution is in microseconds.
    2. You need this when you want to get the time of day as a raw integer value, and not a formated text value for the date and time. You can use the result as a seed value for a pseudo-random number generator, for example.
    3. Wait a minute, am I doing your homework for you?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •