from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
| You are here: manpages
TIMEVAL_TO_TIMESPEC
Section: C Library Functions (3) Updated: 202-0-17 Index
Return to Main Contents
NAME
TIMEVAL_TO_TIMESPEC,
TIMESPEC_TO_TIMEVAL
-
convert between time structures
SYNOPSIS
#define _GNU_SOURCE
#include <sys/time.h>
void TIMEVAL_TO_TIMESPEC(const struct timeval *tv, struct timespec *ts);
void TIMESPEC_TO_TIMEVAL(struct timeval *tv, const struct timespec *ts);
DESCRIPTION
These macros convert from a
timeval(3type)
to a
timespec(3type)
structure,
and vice versa,
respectively.
This is especially useful for writing interfaces that receive a type,
but are implemented with calls to functions that receive the other one.
STANDARDS
GNU,
BSD.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- STANDARDS
-
|