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

NAME

6       dtk_addtime - timestamp adjustment function
7

SYNOPSIS

9       #include <dtk_time.h>
10
11       int dtk_addtime(struct dtk_timespec* ts, long sec, long nsec);
12

DESCRIPTION

14       The function dtk_addtime() adjusts the time pointed by ts by adding sec
15       seconds and nsec nanoseconds.
16

RETURN VALUE

18       On success, the function returns 0, otherwise -1.
19

ERRORS

21       dtk_addtime() will fail if:
22
23       EINVAL The value in the nsec field was not in the range  -999999999  to
24              999999999.
25

SEE ALSO

27       dtk_nanosleep(3), dtk_gettime(3)
28
29
30
31
32EPFL                                 2011                       DTK_ADDTIME(3)
Impressum