timespec
Defined in header <time.h> | ? | ? |
---|---|---|
struct timespec; | ? | (since C11) |
Structure holding an interval broken down into seconds and nanoseconds.
Member objects
time_t tv_sec | whole seconds (valid values are >= 0) |
---|---|
long tv_nsec | nanoseconds (valid values are 0, 999999999) |
References
- C11标准(ISO / IEC 9899:2011):
- 7.27.1 / 3时间分量(p:388)
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com