1DTK_ADDTIME(3)                Draw Toolkit manual               DTK_ADDTIME(3)
2
3
4

NAME

6       dtk_difftime_s,  dtk_difftime_ms,  dtk_difftime_us,  dtk_difftime_ns  -
7       timestamp difference
8

SYNOPSIS

10       #include <dtk_time.h>
11
12       long dtk_difftime_s(const struct dtk_timespec* ts,
13                           const struct dtk_timespec* orig);
14       long dtk_difftime_ms(const struct dtk_timespec* ts,
15                            const struct dtk_timespec* orig);
16       long dtk_difftime_us(const struct dtk_timespec* ts,
17                            const struct dtk_timespec* orig);
18       long dtk_difftime_ns(const struct dtk_timespec* ts,
19                            const struct dtk_timespec* orig);
20

DESCRIPTION

22       These functions returns the difference of time from orig to ts.
23
24       dtk_difftime_s() returns the difference in seconds.
25
26       dtk_difftime_ms() returns the difference in milliseconds.
27
28       dtk_difftime_us() returns the difference in microseconds.
29
30       dtk_difftime_ns() returns the difference in nanoseconds.
31

RETURN VALUE

33       All the functions return the difference of time.
34

SEE ALSO

36       dtk_nanosleep(3), dtk_gettime(3), dtk_addtime(3)
37
38
39
40
41
42EPFL                                 2011                       DTK_ADDTIME(3)
Impressum