| Name | Description | Notes | Source | Availability | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
struct
timespec |
Nanosecond time type | T | <time.h> |
C11 | |||||||
TIME_ |
Indicator for UTC time in struct
timespec |
M | <time.h> |
C11 | |||||||
timespec_ |
Read nanosecond time | (·) | <time.h> |
C11 | |||||||
Macros with names matching ^TIME_[A-Z] might be added to <time.h>.
<time.h> defines a type
struct timespec, which
represents a time duration in nanoseconds.
| Field | Meaning |
|---|---|
time_t tv_sec |
Whole seconds |
long
tv_usec |
Nanoseconds |
#include<time.h>int timespec_get (struct timespec *tsp, int base);
The function timespec_
gets the current calendar time, and assigns it to
*tsp. The only portable value of
base is
TIME_.
| Name | Description | Notes | Source | Availability | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
cnd_ |
Wait on a condition variable for a limited time | ? | (·) | <threads.h> |
C11 | ||||||
mtx_ |
Try for some time to lock a mutex | ? | (·) | <threads.h> |
C11 | ||||||
thrd_ |
Suspend current thread | ? | (·) | <threads.h> |
C11 | ||||||