4 ms·
`struct xtime` and `xtime_get` were added in C11 as `struct timespec` and `timespec_get`: http://port70.net/~nsz/c/c11/n1570.html#7.27.1p3 http://port70.net/~n
by cremno 12y ago
`struct xtime` and `xtime_get` were added in C11 as `struct timespec` and `timespec_get`:
http://port70.net/~nsz/c/c11/n1570.html#7.27.1p3 http://port70.net/~nsz/c/c11/n1570.html#7.27.1p3
http://port70.net/~nsz/c/c11/n1570.html#7.27.2.5 http://port70.net/~nsz/c/c11/n1570.html#7.27.2.5
There are some differences though. Not only the name and types differ. But also `timespec_get` is only required to support `TIME_UTC` and the specification is not as detailed.
- cremno 12y agoAlso, some proposed conversion specifiers are part of C99: %z and %l / %L as %Z.