Searched refs:clock_id (Results 1 – 2 of 2) sorted by relevance
14 int clock_gettime(clockid_t clock_id, struct timespec *ts);40 static clockid_t clock_id = CLOCK_BOOTTIME; in os_get_reltime() local42 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()
80 static clockid_t clock_id = CLOCK_BOOTTIME; in os_get_reltime() local82 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()