Quoting r. Roland Dreier <[EMAIL PROTECTED]>:
> Subject: Re: ANNOUNCE: First usable version of userspace verbs
> 
>     mst> but I also changed the clock sampling to use the realtime
>     mst> clock from -lrt, since it gives a more consistent timing
>     mst> results on my system.
> 
> By the way, what exactly are you using?  clock_gettime() with
> CLOCK_REALTIME?
Yes.

> Do you know what the difference from gettimeofday is?
I didnt investigate, all I know is that with clock_gettime
I seem to get consistent results across runs, not so with gettimeofday.

> I haven't followed Linux timekeeping development too closely but there
> should be some portable libc way to get high-resolution time without a
> system call (ie rdtsc on x86, mftb on ppc, etc).  
> 
>  - R.

I can look up the librt source, I guess.

-- 
MST - Michael S. Tsirkin
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to