Home
last modified time | relevance | path

Searched refs:clock_id (Results 1 – 2 of 2) sorted by relevance

/hostap-latest/src/utils/
Dos_zephyr.c14 int clock_gettime(clockid_t clock_id, struct timespec *ts);
40 static clockid_t clock_id = CLOCK_BOOTTIME; in os_get_reltime() local
42 static clockid_t clock_id = CLOCK_MONOTONIC; in os_get_reltime()
44 static clockid_t clock_id = CLOCK_REALTIME; in os_get_reltime()
54 res = clock_gettime(clock_id, &ts); in os_get_reltime()
60 switch (clock_id) { in os_get_reltime()
63 clock_id = CLOCK_MONOTONIC; in os_get_reltime()
68 clock_id = CLOCK_REALTIME; in os_get_reltime()
Dos_unix.c80 static clockid_t clock_id = CLOCK_BOOTTIME; in os_get_reltime() local
82 static clockid_t clock_id = CLOCK_MONOTONIC; in os_get_reltime()
84 static clockid_t clock_id = CLOCK_REALTIME; in os_get_reltime()
93 res = clock_gettime(clock_id, &ts); in os_get_reltime()
99 switch (clock_id) { in os_get_reltime()
102 clock_id = CLOCK_MONOTONIC; in os_get_reltime()
107 clock_id = CLOCK_REALTIME; in os_get_reltime()