Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 1999 17:01:35 -0700
From:      "Ronald F. Guilmette" <rfg@monkeys.com>
To:        questions@freebsd.org
Subject:   What's a microsecond?
Message-ID:  <9938.935798495@monkeys.com>

next in thread | raw e-mail | index | archive | help

OK, so maybe this is dumb question, but I need to know.

The documentation for gettimeofday(2) says:

     struct timeval {
             long    tv_sec;         /* seconds since Jan. 1, 1970 */
             long    tv_usec;        /* and microseconds */
     };

Is that "microsecond" as in 1/1,000,000 seconds?  Or is that "microsecond"
as in 1/2^20 seconds?

There _is_ a slight but significant difference.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9938.935798495>