Date: Tue, 13 Apr 2004 10:14:28 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: "Richard P. Williamson" <richard.williamson@u4eatech.com> Cc: freebsd-questions@freebsd.org Subject: Re: timestamp in 4.8? Message-ID: <20040413151428.GG19655@dan.emsphone.com> In-Reply-To: <6.1.0.6.2.20040413152416.025514d8@cygnus> References: <6.1.0.6.2.20040413152416.025514d8@cygnus>
next in thread | previous in thread | raw e-mail | index | archive | help
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(). -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040413151428.GG19655>