logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TIMEVAL_TO_TIMESPEC, TIMESPEC_TO_TIMEVAL - convert between time structures

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.

Name

       TIMEVAL_TO_TIMESPEC, TIMESPEC_TO_TIMEVAL - convert between time structures

Standards

       GNU, BSD.

Linux man-pages 6.9.1                              2024-05-02                             TIMEVAL_TO_TIMESPEC(3)

Synopsis

#define_GNU_SOURCE#include<sys/time.h>voidTIMEVAL_TO_TIMESPEC(conststructtimeval*tv,structtimespec*ts);voidTIMESPEC_TO_TIMEVAL(structtimeval*tv,conststructtimespec*ts);

See Also