From: Dale Martenson Date: 2004-06-12T01:34:02+09:00 Subject: Re: The dangers of sleeping ... > -----Original Message----- > From: Ben Giddings [mailto:bg-rubytalk@infofiend.com] > Sent: Friday, June 11, 2004 10:53 AM > > gettimeofday() on Linux at least, returns the number of seconds and > microseconds since January 1st 1970. This is the value that should > never suddenly change, and should never, under any circumstances, go > backwards. > > It seems pretty reasonable to me to expect this value to stay > sane, but > if you either know you're on a computer that will have this value > changed by big amounts, or you have specialized needs, go right ahead > and make a better system, and if you do, please share! In eval.c, the routine 'timeofday()' uses 'gettimeofday()'. This doesn't work since 'gettimeofday()' is effected by modifications to the system clock. Since 'gettimeofday()' value is relative to a particular date in time, it is of no help.