Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

About gethrtime() function

804536Jan 18 2013 — edited Jan 18 2013
Hello:

First of all, I apologize if this is not the adequate forum for this question. I'm trying to use the gethrtime() in order to compute proccesing times. I'm using Solaris Studio 12.3 in a LINUX box. The problem is that I obtain ans error (undefined definition of the function and linker error). So my question is:

Is the gethrtime() a specific function of Solaris OS or comes with Solaris compilers. As I obtain an undefined definition error I suppose that it not belongs with the compiler (I have included sys/time.h)

I'm trying to use too the clock_gettime() function, but I obtain errors. This function should be declared in unistd.h header, but apparently does not exists in solaris Studio conpiler. Am I right?

Thanks

Edited by: 801533 on 18-ene-2013 6:41
This post has been answered by Steve.Clamage-Oracle on Jan 18 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2013
Added on Jan 18 2013
8 comments
1,944 views