Re: OON: Timing function for GNU g++ ???

From: Xiaowen Wang (swangken@cfdlab.ae.utexas.edu)
Date: Fri Jun 23 2000 - 17:08:18 EST


On Mon, 19 Jun 2000, you wrote:
> Hello everyone,
>
> I was wondering if anyone knows of an accurate timing function to be used
> with Linux/GNU g++ 2.95.2? The standard library function clock() only
> appears to have a minimum resolution of 0.01 sec. I need something much
> more accurate.
The resolution limit is not due to gcc but due to the OS. On linux, I had some
warm feeling with TAU from ACL lab in Los Alomas: www.acl.lanl.gov , the
idea is to profile a code section for a bunch of times(e.g. in loops) to get
around the timing resolution limit, you insert some TAU macros into your code
to do that.

Xiaowen

>
> Cheers,
>
>
> Roscoe
>
>
> --------------------------------------
> | Roscoe Bartlett |
> | Ph.D. student |
> | Department of Chemical Engineering |
> | Carnegie Mellon University |
> | email: roscoe@andrew.cmu.edu |
> | work phone: (412) 268 - 2238 |
> --------------------------------------
>
> --------------------- Object Oriented Numerics List --------------------------
> * To subscribe/unsubscribe: use the handy web form at
> http://oonumerics.org/oon/
> * If this doesn't work, please send a note to owner-oon-list@oonumerics.org

--------------------- Object Oriented Numerics List --------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/oon/
* If this doesn't work, please send a note to owner-oon-list@oonumerics.org



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:13 EST