From: efh4v@bootp-47-231.bootp.virginia.edu (Edgar F. Hilton)
Subject: direct memory access, gettimeofday: any GURUS out there?
Date: 1998/06/17 [thread overview]
Message-ID: <m3u35kar93.fsf@bootp-47-231.bootp.virginia.edu> (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
-------------------------------------------------------
next reply other threads:[~1998-06-17 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-17 4:00 Edgar F. Hilton [this message]
1998-06-18 4:00 ` direct memory access, gettimeofday: any GURUS out there? Joachim Wesner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox