Date: Wed, 14 Apr 2004 10:23:30 +0100 From: "Richard P. Williamson" <richard.williamson@u4eatech.com> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-questions@freebsd.org Subject: Re: timestamp in 4.8? Message-ID: <6.1.0.6.2.20040414102257.02550840@cygnus> In-Reply-To: <20040413151428.GG19655@dan.emsphone.com> References: <6.1.0.6.2.20040413152416.025514d8@cygnus> <20040413151428.GG19655@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 16:14 13/04/2004, Dan Nelson wrote: >In the last episode (Apr 13), Richard P. Williamson said: >> Is there a reasonable timestamp (that uses a struct timeval >> to return data by preference) in 4.8R? >> >> TSTMP (option KERN_TIMESTAMP) writes the rdtsc clock >> value to debug.timestamps in sysctl-space. That does >> not suit my purposes (need to timestamp the creation >> of objects which are passed about). > >Why not use gettimeofday()? If you need more precision than >microseconds, you probably can bump up HZ and use clock_gettime(). Ok, clock_gettime works for me. Thanks! rip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.0.6.2.20040414102257.02550840>