From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4dae7da8c93204d8 X-Google-Attributes: gid111c93,public From: Joachim Wesner Subject: Re: direct memory access, gettimeofday: any GURUS out there? Date: 1998/06/18 Message-ID: <3588AA64.7E99EA69@frankfurt.netsurf.de>#1/1 X-Deja-AN: 363764183 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: OMNILINK -- your link to the Net MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Edgar F. Hilton wrote: > I am having some problems using the C function gettimeofday. For some > reason, I am getting a resolution of approximately 980 > microseconds. This was not a problem in the 32 bit machines, but it > seems to be a problem here. > It turns out that roughly 400 - 500 samples from the above show the same > clock time. The clock jumps by 980 microseconds, and stays constant over > the next 400-500 samples, at which time the clock jumps again, etc. > What am I missing? Nothing. The system tick of Linux/ALpha runs at approx 1 kHz, which is exactly what you find. However, there is a hardware cycle counter you probably could use, don't have it handy, I would have to look it up, dunno/fear that there is no high level callable function available, yet. ! Joachim