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]

Re: Measuring short times


> Yeah, I'm a programming newbie, so sorry if it's a stupid question.
>
> I need to measure a time shorter than 1 milisecond (I need to measure
> 500 nanoseconds to be exact), but <time.h> seems to give me only the
> option to have miliseconds. Can someone give me some tip of how to do
> that?
>
> By the way, I'm using a GCC port for Windows that came with Devcpp,
> maybe it's an useful information.
>
> Thank you very much for the help :)

http://www.blastwave.org/man/gethrtime_3C.html

you need Solaris for that to work.



Dennis


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