Date: Tue, 4 Nov 1997 17:41:01 -0800 (PST) From: Alex <garbanzo@hooked.net> To: Mike Smith <mike@smith.net.au> Cc: Charles Mott <cmott@srv.net>, hackers@hub.freebsd.org Subject: Re: gettimeofday() overhead Message-ID: <Pine.BSF.3.96.971104174022.3158D-100000@zippy.dyn.ml.org> In-Reply-To: <199711041315.XAA00406@word.smith.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 Nov 1997, Mike Smith wrote: > Unfortunately, this requires access to /dev/kmem, and thus your process > must be running as root. IMHO this isn't really an acceptable tradeoff > unless the application already requires it. Naw, just setgid kmem. > OTOH, if +/- 1 second is good enough, a once-a-second timer and a local > call to gettimeofday() would be a simple and straightforward technique, > as was also suggested. Probably right, but more accuracy within reason can't hurt. - alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971104174022.3158D-100000>