can I ask question about a bug of gettimeofday here?

Lin George george4academic@yahoo.com
Fri Feb 9 13:44:00 GMT 2007


Thanks Brian!


I always can not distinguish between libc and gcc for some specific issues. Could you recommend me which is the correct mail list of libc (for my issue) please?

About the point you raised,

> I suppose a daemon like ntp (or perhaps the kernel itself) might be
> adjusting for clock skew here by periodically subtracting small amounts
> of time.

How I can know when or how much times the time is adjusted? Why ntp or kernel needs to adjust time or even adjust to sometime before? :-)


regards,
George

----- Original Message ----
From: Brian Dessent <brian@dessent.net>
To: Lin George <george4academic@yahoo.com>
Cc: gcc-help@gcc.gnu.org
Sent: Friday, February 9, 2007 8:32:32 PM
Subject: Re: can I ask question about a bug of gettimeofday here?


Lin George wrote:

> I am not sure whether it is the correct place to ask a bug of gettimeofday here.

It's not.  The function is implemented by whatever C library your
platform provides.  gcc does not include a C library.

Note that mentioning what platform you're using when posting to a
mailing list is always a good idea, otherwise you can only expect
nonspecific answers.  gcc is used on dozens and dozens of platforms, so
you cannot assume we have any idea what you're doing.

> I found sometimes the time will not be increased, but will be decreased. It does not happen each time, but happens rarely.
> 
> Here is my program and output, are there anything wrong.
> 
> Output
> --------------------
> begin second and micro-second is: 1155819609 -- 653911
> print begin time
> 2006-08-17 13:00:09.653
> end second and micro-second is: 1155819609 -- 635116
> print end time
> 2006-08-17 13:00:09.635

I suppose a daemon like ntp (or perhaps the kernel itself) might be
adjusting for clock skew here by periodically subtracting small amounts
of time.

Brian


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail



More information about the Gcc-help mailing list