-
Notifications
You must be signed in to change notification settings - Fork 7
/
chr_time.h
52 lines (37 loc) · 955 Bytes
/
chr_time.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef CHR_TIME_H
#define CHR_TIME_H
#include <stddef.h>
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
typedef struct chr_time {
double d1;
double d2;
double d3;
} chr_time;
extern void
chr_get_time( chr_time *time);
extern void
chr_timer_diff( chr_time *diff_time, chr_time *src1, chr_time *src2);
extern int
chr_timer_eq_zero( chr_time *time);
extern void
chr_timer_sum( chr_time *sum_time, chr_time *src1, chr_time *src2);
extern void
chr_timer_start (chr_time *timer);
extern void
chr_timer_stop (chr_time *timer);
extern double
chr_time_to_nanosecs (chr_time *time);
extern double
chr_time_to_microsecs (chr_time *time);
extern double
chr_time_to_millisecs (chr_time *time);
extern double
chr_time_to_secs (chr_time *time);
extern double
chr_approx_resolution();
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif