timer.h 887 B

123456789101112131415161718192021222324252627
  1. /** \file timer.h
  2. * \brief Header: simple timer
  3. */
  4. #ifndef MC_TIMER_H
  5. #define MC_TIMER_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. /*** enums ***************************************************************************************/
  8. /*** structures declarations (and typedefs of structures)*****************************************/
  9. struct mc_timer_t;
  10. typedef struct mc_timer_t mc_timer_t;
  11. /*** global variables defined in .c file *********************************************************/
  12. /*** declarations of public functions ************************************************************/
  13. mc_timer_t *mc_timer_new (void);
  14. void mc_timer_destroy (mc_timer_t * timer);
  15. guint64 mc_timer_elapsed (const mc_timer_t * timer);
  16. /*** inline functions **************************************************/
  17. #endif /* MC_TIMER_H */