This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Where is gethrtime() ?


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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]