Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 1996 10:12:56 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        dgy@rtd.com (Don Yuniskis)
Subject:   Re: time(3) vs. gettimeofday(2)
Message-ID:  <199610160812.KAA17166@uriah.heep.sax.de>
In-Reply-To: <199610160707.AAA21402@seagull.rtd.com> from Don Yuniskis at "Oct 16, 96 00:07:45 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As Don Yuniskis wrote:

>      As the subject line says, I'm stumped trying to fathom the
> differences between these two functions.

>      Have I missed something in the documentation?

Yes, you've missed the tv_utime field. :)  time() is the historic
version with only one-second granularity.  On BSD, it's implemented
using gettimeofday().

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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