CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
timespec Struct Reference

A time value with up to nanosecond precision. More...

#include <time.h>

Public Attributes

time_t tv_sec
 Seconds.
uint32_t tv_nsec
 Nanoseconds.

Detailed Description

A time value with up to nanosecond precision.

Definition at line 73 of file time.h.

Member Data Documentation

◆ tv_nsec

uint32_t timespec::tv_nsec

Nanoseconds.

Note that POSIX and pre-C23 versions of C specify that this is long, but they require that the values be between 0 and 999,999,999 (inclusive). C23 allows this to be any type capable of representing this range and so we use uint32_t.

Definition at line 85 of file time.h.

◆ tv_sec

time_t timespec::tv_sec

Seconds.

Definition at line 76 of file time.h.


The documentation for this struct was generated from the following file: