timespec

timespec

Defined in header
struct timespec;(since C11)

Structure holding an interval broken down into seconds and nanoseconds.

Member objects

time_t tv_secwhole seconds (valid values are >= 0)
long tv_nsecnanoseconds (valid values are 0, 999999999)

References

  • C11标准(ISO / IEC 9899:2011):