removed duplicate code
This commit is contained in:
parent
516357d855
commit
518a07d05b
@ -1,19 +0,0 @@
|
|||||||
#ifndef FSFW_SRC_FSFW_GLOBALFUNCTIONS_TIMESYSTEMS_H_
|
|
||||||
#define FSFW_SRC_FSFW_GLOBALFUNCTIONS_TIMESYSTEMS_H_
|
|
||||||
|
|
||||||
#ifdef PLATFORM_WIN
|
|
||||||
#include <winsock2.h>
|
|
||||||
#else
|
|
||||||
#include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class TimeSystems {
|
|
||||||
public:
|
|
||||||
virtual ~TimeSystems() {}
|
|
||||||
|
|
||||||
static double convertUnixToJD2000(timeval time) {
|
|
||||||
return ((time.tv_sec + time.tv_usec * 1e-6) / 86400.0) + 2440587.5 - 2451545;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* FSFW_SRC_FSFW_GLOBALFUNCTIONS_TIMESYSTEMS_H_ */
|
|
Loading…
Reference in New Issue
Block a user