Home | History | Annotate | Download | only in programs

Lines Matching defs:time

16 #include <time.h>     /* CLOCK_MONOTONIC, TIME_UTC */
19 * Time functions
74 /* time must be initialized, othersize it may fail msan test.
76 struct timespec time = { 0, 0 };
77 if (clock_gettime(CLOCK_MONOTONIC, &time) != 0) {
82 r.t = (PTime)time.tv_sec * 1000000000ULL + (PTime)time.tv_nsec;
101 /* time must be initialized, othersize it may fail msan test.
103 struct timespec time = { 0, 0 };
104 if (timespec_get(&time, TIME_UTC) != TIME_UTC) {
109 r.t = (PTime)time.tv_sec * 1000000000ULL + (PTime)time.tv_nsec;
128 /* ==== Common functions, valid for all time API ==== */