Golem  v0.1.1
Generic Operating system Libraries for Embedded Multitasking
 All Data Structures Files Functions Variables Pages
/home/ruud/Engineering/software/projects/golem-project-code/trunk/glm_tick.h
Go to the documentation of this file.
1 
16 #ifndef _GLM_TICK_H_
17 #define _GLM_TICK_H_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /* INCLUDES ***********************************************************/
24 #include "glm_conf.h"
25 #include "glm_intbase.h"
26 
27 
28 /* TYPES *************************************************************/
37 typedef struct
38 {
39  uint_base_t tick;
40  uint_base_t subtick;
41 } tickstamp_t;
42 
43 
44 /* PUBLIC FUNCTIONS **************************************************/
45 
51 extern void tick_inc();
52 
53 
58 extern void tick_current(tickstamp_t *ts);
59 
60 
75 extern void tick_diff( tickstamp_t *begin, tickstamp_t *end,
76  tickstamp_t *result);
77 
92 extern float tick_time(const tickstamp_t *ts);
93 
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* TICK_H */
100