From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4dae7da8c93204d8,start X-Google-Attributes: gid111c93,public From: efh4v@bootp-47-231.bootp.virginia.edu (Edgar F. Hilton) Subject: direct memory access, gettimeofday: any GURUS out there? Date: 1998/06/17 Message-ID: #1/1 X-Deja-AN: 363575469 Organization: University of Virginia Newsgroups: comp.os.linux.alpha 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 -------------------------------------------------------