Minor tidyup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9773 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-05-04 04:37:24 +00:00
parent 240c50048a
commit f61bd6a6f6
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2001-05-04 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSDate.m: GSTimeNow() remove volatile typespec and move
initialisation of interval in the hope of fixing a problem with
float operations. In any case, the code is tidier.
2001-05-03 Adam Fedor <fedor@gnu.org>
* configure.in: Don't use -lobjc with NeXT_RUNTIME. Check for -lm.

View file

@ -117,11 +117,11 @@ NSTimeInterval
GSTimeNow()
{
#if !defined(__MINGW__)
volatile NSTimeInterval interval;
NSTimeInterval interval;
struct timeval tp;
interval = UNIX_REFERENCE_INTERVAL;
gettimeofday (&tp, NULL);
interval = UNIX_REFERENCE_INTERVAL;
interval += tp.tv_sec;
interval += (double)tp.tv_usec / 1000000.0;
return interval;