[openib-general] Re: ANNOUNCE: First usable version of userspace verbs

Michael S. Tsirkin mst at mellanox.co.il
Tue Mar 1 16:22:19 PST 2005


Quoting r. Roland Dreier <roland at topspin.com>:
> 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



More information about the general mailing list