[Previous] [Contents] [Next]

nsec2timespec()

Convert nanoseconds to a timespec structure

Synopsis:

#include <time.h>

void nsec2timespec( struct timespec* timespec_p,
                    _uint64 nsec );

Library:

libc

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:

Unix

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

timespec2nsec()


[Previous] [Contents] [Next]