Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

time.h 644B

1234567891011121314151617181920212223242526272829303132
  1. /*!
  2. * \file include/utils/time.h
  3. * \brief Time handling utilities
  4. *
  5. * \author xythobuz
  6. * \author Mongoose
  7. */
  8. #ifndef _UTILS_TIME_H_
  9. #define _UTILS_TIME_H_
  10. #if defined(linux) || defined(__APPLE__)
  11. #include <time.h>
  12. #include <sys/time.h>
  13. #endif
  14. extern struct timeval system_timer_start; //!< System timer start time
  15. extern struct timeval system_timer_stop; //!< System timer last read time
  16. extern struct timezone system_timer_tz; //!< System timer timezone info
  17. /*!
  18. * \brief Read the system timer
  19. * \returns number of ticks
  20. */
  21. unsigned int systemTimerGet();
  22. /*!
  23. * \brief Reset the system timer
  24. */
  25. void systemTimerReset();
  26. #endif