00001
00002
00003
00004
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008
00009 #ifndef TIMING_HD
00010
00011 #include <sys/time.h>
00012
00013 int start_chrono();
00014 int stop_chrono();
00015 unsigned long int get_ms();
00016 int set_one_shot_timer(long sec, long micro_second);
00017 int cancel_one_shot_timer();
00018 int pause_one_shot_timer();
00019 int restart_one_shot_timer();
00020
00021
00022
00023
00024 #define SET_ONE_SHOT_TIMER_ERROR -1
00025
00026
00027
00028 #define SET_ONE_SHOT_TIMER_OK -2
00029
00030
00031
00032 #define CANCEL_ONE_SHOT_TIMER_ERROR -3
00033
00034
00035
00036 #define CANCEL_ONE_SHOT_TIMER_OK -4
00037
00038
00039
00040 #define PAUSE_ONE_SHOT_TIMER_ERROR -5
00041
00042
00043
00044 #define PAUSE_ONE_SHOT_TIMER_OK -6
00045
00046
00047
00048 #define RESTART_ONE_SHOT_TIMER_ERROR -7
00049
00050
00051
00052 #define RESTART_ONE_SHOT_TIMER_OK -8
00053
00054
00055 #define TIMING_HD
00056 #endif
00057
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061