mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +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
02fb548422
commit
2ed6e26dc7
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>
|
2001-05-03 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* configure.in: Don't use -lobjc with NeXT_RUNTIME. Check for -lm.
|
* configure.in: Don't use -lobjc with NeXT_RUNTIME. Check for -lm.
|
||||||
|
|
|
@ -117,11 +117,11 @@ NSTimeInterval
|
||||||
GSTimeNow()
|
GSTimeNow()
|
||||||
{
|
{
|
||||||
#if !defined(__MINGW__)
|
#if !defined(__MINGW__)
|
||||||
volatile NSTimeInterval interval;
|
NSTimeInterval interval;
|
||||||
struct timeval tp;
|
struct timeval tp;
|
||||||
|
|
||||||
interval = UNIX_REFERENCE_INTERVAL;
|
|
||||||
gettimeofday (&tp, NULL);
|
gettimeofday (&tp, NULL);
|
||||||
|
interval = UNIX_REFERENCE_INTERVAL;
|
||||||
interval += tp.tv_sec;
|
interval += tp.tv_sec;
|
||||||
interval += (double)tp.tv_usec / 1000000.0;
|
interval += (double)tp.tv_usec / 1000000.0;
|
||||||
return interval;
|
return interval;
|
||||||
|
|
Loading…
Reference in a new issue