IntervalTimer.h 575 B

123456789101112131415161718192021222324
  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 __INTERVAL_TIMER_H
  11. #define __INTERVAL_TIMER_H
  12. #include "RakNetTypes.h"
  13. struct IntervalTimer
  14. {
  15. void SetPeriod(RakNet::TimeMS period);
  16. bool UpdateInterval(RakNet::TimeMS elapsed);
  17. RakNet::TimeMS basePeriod, remaining;
  18. };
  19. #endif
粤ICP备19079148号