forked from Imagelibrary/rtems
Added gettimeofday().
This commit is contained in:
@@ -19,6 +19,7 @@ The directives provided by the clock manager are:
|
|||||||
@item @code{clock_settime} -
|
@item @code{clock_settime} -
|
||||||
@item @code{clock_getres} -
|
@item @code{clock_getres} -
|
||||||
@item @code{nanosleep} -
|
@item @code{nanosleep} -
|
||||||
|
@item @code{gettimeofday} -
|
||||||
@item @code{time} -
|
@item @code{time} -
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@@ -189,6 +190,31 @@ field.
|
|||||||
|
|
||||||
This call is interruptible by a signal.
|
This call is interruptible by a signal.
|
||||||
|
|
||||||
|
@page
|
||||||
|
@subsection gettimeofday
|
||||||
|
|
||||||
|
@subheading CALLING SEQUENCE:
|
||||||
|
|
||||||
|
@example
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
int gettimeofday(
|
||||||
|
struct timeval *tp,
|
||||||
|
struct timezone *tzp
|
||||||
|
);
|
||||||
|
@end example
|
||||||
|
|
||||||
|
@subheading STATUS CODES:
|
||||||
|
|
||||||
|
On error, this routine returns -1 and sets errno as appropriate.
|
||||||
|
|
||||||
|
@subheading DESCRIPTION:
|
||||||
|
|
||||||
|
@subheading NOTES:
|
||||||
|
|
||||||
|
Currently, the timezone information is not supported.
|
||||||
|
|
||||||
@page
|
@page
|
||||||
@subsection time
|
@subsection time
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user