nsec2timespec()
QNX SDP8.0C Library ReferenceAPIDeveloper
Convert nanoseconds to a timespec structure
Synopsis:
#include <time.h>
void nsec2timespec( struct timespec *timespec_p,
uint64_t nsec );
Arguments:
- timespec_p
- A pointer to a timespec structure where the function can store the converted time.
- nsec
- The number of nanoseconds that you want to convert.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
This function converts the given number of nanoseconds, nsec, into seconds and nanoseconds, and stores them in the timespec structure pointed to by timespec_p.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | Yes |
Thread | Yes |
Page updated: