This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Where is gethrtime() ?
- From: "Ernest L. Williams Jr." <ernesto at ornl dot gov>
- To: GCC-Help <gcc-help at gcc dot gnu dot org>
- Date: Sun, 23 Oct 2005 09:46:06 -0400
- Subject: Where is gethrtime() ?
- Reply-to: ernesto at ornl dot gov
Hi,
I would like to play with high resolution timers under linux and GCC.
Where is the function "gethrtime()" ?
Is that function only found on solaris?
============= snip from a grep in /usr/include/sys ====================
time.h:extern hrtime_t gethrtime(void);
time.h:extern hrtime_t gethrtime_unscaled(void);
time.h:extern hrtime_t gethrtime_max(void);
time.h:hrtime_t gethrtime(void);
time.h:hrtime_t gethrtime();
=======================================================================
Thanks,
Ernesto