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:
CaS 2001-05-04 04:37:24 +00:00
parent 02fb548422
commit 2ed6e26dc7
2 changed files with 8 additions and 2 deletions

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;