mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
240c50048a
commit
f61bd6a6f6
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue