Robot Agent  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
timelib.h
Go to the documentation of this file.
1 
11 #ifndef __TIMELIB_H
12 #define __TIMELIB_H
13 
14 /* -- Includes -- */
15 
16 /* -- Enumurations -- */
17 
18 /* -- Types -- */
19 
20 /* -- Constants -- */
21 
22 /* -- Function Prototypes -- */
23 int timelib_timer_set(struct timeval *tv); // Set timer value
24 double timelib_timer_get(struct timeval tv); // Get elapsed time in miliseconds
25 double timelib_timer_reset(struct timeval *tv); // Reset timer value
26 void timelib_timer_add_ms(struct timeval *tv, unsigned int ms); // Add time to timer in milliseconds
27 double timelib_timer_diff(struct timeval tv1, struct timeval tv2); // Get time difference in milliseconds
28 double timelib_unix_timestamp(); // Get UNIX timestamp in miliseconds
29 
30 #endif /* __TIMELIB_H */
double timelib_timer_get(struct timeval tv)
Definition: timelib.c:43
int timelib_timer_set(struct timeval *tv)
Definition: timelib.c:28
double timelib_unix_timestamp()
Definition: timelib.c:123
double timelib_timer_reset(struct timeval *tv)
Definition: timelib.c:64
double timelib_timer_diff(struct timeval tv1, struct timeval tv2)
Definition: timelib.c:109
void timelib_timer_add_ms(struct timeval *tv, unsigned int ms)
Definition: timelib.c:90