* direct memory access, gettimeofday: any GURUS out there?
@ 1998-06-17 4:00 Edgar F. Hilton
1998-06-18 4:00 ` Joachim Wesner
0 siblings, 1 reply; 2+ messages in thread
From: Edgar F. Hilton @ 1998-06-17 4:00 UTC (permalink / raw)
Hi!
Is there a big difference in doing hardware programming for an Alpha
machine vs. an Intel machine (except for the fact that it is 64 bit and
the other is a 32 bit)?
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.
Program Synopsis:
o BEGIN
o SET SCHEDULER TO FIFO
o BEGIN LOOP (10,000 times)
o SAMPLE gettimeofday (SAVE INTO A VECTOR)
o END LOOP
o SET SCHEDULER TO OTHER
o WRITE TIME VECTOR TO SCREEN
o END
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.
Any thoughts? What am I missing?
-- Edgar
-------------------------------------------------------
Edgar F. Hilton
Rotating Machinery and Controls Laboratory (ROMAC)
office: (804) 924-6233 fax: (804) 982-2246
email: efhilton@alum.mit.edu
URL: watt.seas.virginia.edu/~efh4v
-------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: direct memory access, gettimeofday: any GURUS out there?
1998-06-17 4:00 direct memory access, gettimeofday: any GURUS out there? Edgar F. Hilton
@ 1998-06-18 4:00 ` Joachim Wesner
0 siblings, 0 replies; 2+ messages in thread
From: Joachim Wesner @ 1998-06-18 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-06-18 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-17 4:00 direct memory access, gettimeofday: any GURUS out there? Edgar F. Hilton
1998-06-18 4:00 ` Joachim Wesner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox