1DTK_ADDTIME(3) Draw Toolkit manual DTK_ADDTIME(3)
2
3
4
6 dtk_addtime - timestamp adjustment function
7
9 #include <dtk_time.h>
10
11 int dtk_addtime(struct dtk_timespec* ts, long sec, long nsec);
12
14 The function dtk_addtime() adjusts the time pointed by ts by adding sec
15 seconds and nsec nanoseconds.
16
18 On success, the function returns 0, otherwise -1.
19
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
27 dtk_nanosleep(3), dtk_gettime(3)
28
29
30
31
32EPFL 2011 DTK_ADDTIME(3)