Sponsor:

Your company here, and a link to your site. Click to find out more.

TIMEVAL_TO_TIMESPEC - Man Page

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.

Referenced By

The man page TIMESPEC_TO_TIMEVAL(3) is an alias of TIMEVAL_TO_TIMESPEC(3).

2024-03-12 Linux man-pages 6.7