RakNetTime.h 927 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #ifndef __RAKNET_TIME_H
  11. #define __RAKNET_TIME_H
  12. #include "NativeTypes.h"
  13. #include "RakNetDefines.h"
  14. namespace RakNet {
  15. // Define __GET_TIME_64BIT if you want to use large types for GetTime (takes more bandwidth when you transmit time though!)
  16. // You would want to do this if your system is going to run long enough to overflow the millisecond counter (over a month)
  17. #if __GET_TIME_64BIT==1
  18. typedef uint64_t Time;
  19. typedef uint32_t TimeMS;
  20. typedef uint64_t TimeUS;
  21. #else
  22. typedef uint32_t Time;
  23. typedef uint32_t TimeMS;
  24. typedef uint64_t TimeUS;
  25. #endif
  26. } // namespace RakNet
  27. #endif
粤ICP备19079148号