facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

RaknetTime.H using uint64T in 32bit mode ?? #133

Open shadowtj opened 6 years ago

shadowtj commented 6 years ago

// Define __GET_TIME_64BIT if you want to use large types for GetTime (takes more bandwidth when you transmit time though!) // You would want to do this if your system is going to run long enough to overflow the millisecond counter (over a month)

if __GET_TIME_64BIT==1

typedef uint64_t Time; typedef uint32_t TimeMS; typedef uint64_t TimeUS;

else

typedef uint32_t Time; typedef uint32_t TimeMS; typedef uint64_t TimeUS; stoned van

endif

How is the TimeMS and TimeUS ... UInt switched between 32 and 64bit time mode ?? If usging 32bit mode i expect uint32 in 32 bit modes and visa versa