Socket.cpp   Socket.cpp 
skipping to change at line 39 skipping to change at line 39
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
#include <windows.h> // GetSystemTimeAsFileTime #include <windows.h> // GetSystemTimeAsFileTime
#else #else
#include <sys/time.h> #include <sys/time.h>
#endif #endif
long long int GetNow(void) long long int GetNow(void)
{ {
long long int t; long long int t;
StelCore *core = StelApp::getInstance().getCore(); //StelCore *core = StelApp::getInstance().getCore();
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
union union
{ {
FILETIME file_time; FILETIME file_time;
__int64 t; __int64 t;
} tmp; } tmp;
GetSystemTimeAsFileTime(&tmp.file_time); GetSystemTimeAsFileTime(&tmp.file_time);
t = (tmp.t/10) - 86400000000LL*(369*365+89); t = (tmp.t/10) - 86400000000LL*(369*365+89);
#else #else
struct timeval tv; struct timeval tv;
gettimeofday(&tv, 0); gettimeofday(&tv, 0);
t = tv.tv_sec * 1000000LL + tv.tv_usec; t = tv.tv_sec * 1000000LL + tv.tv_usec;
#endif #endif
return t - core->getDeltaT(StelUtils::getJDFromSystem())*1000000; // // GZ JDfix for 0.14 I am 99.9% sure we no longer need the anti-corr
Delta T anti-correction ection
//return t - core->getDeltaT(StelUtils::getJDFromSystem())*1000000;
// Delta T anti-correction
return t;
} }
void Socket::hangup(void) void Socket::hangup(void)
{ {
if (!IS_INVALID_SOCKET(fd)) if (!IS_INVALID_SOCKET(fd))
{ {
close(fd); close(fd);
fd = INVALID_SOCKET; fd = INVALID_SOCKET;
} }
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/