The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

timersub (3)
  • >> timersub (3) ( FreeBSD man: Библиотечные вызовы )
  • timersub (3) ( Linux man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    timeradd
    
     
    timersub
    
     
    timerclear
    
     
    timerisset
    
     
    timercmp
    
     - operations on timevals
    
     
    

    SYNOPSIS

       #include <sys/time.h>
    void timeradd (struct timeval *a struct timeval *b struct timeval *res);
    void timersub (struct timeval *a struct timeval *b struct timeval *res);
    void timerclear (struct timeval *tvp);
    int timerisset (struct timeval *tvp);
    int timercmp (struct timeval *a struct timeval *b CMP);
     

    DESCRIPTION

    These macros are provided for manipulating Fa timeval structures for use with the gettimeofday(2) and settimeofday(2) calls. The structure is defined in    #include <sys/time.h>
    as:
    struct timeval {
            long    tv_sec;         /* seconds since Jan. 1, 1970 */
            long    tv_usec;        /* and microseconds */
    };
    

    timeradd ();
    adds the time information stored in Fa a to Fa b and stores the resulting Vt timeval in Fa res . The results are simplified such that the value of Fa res->tv_usec is always less than 1,000,000 (1 second).

    timersub ();
    subtracts the time information stored in Fa b from Fa a and stores the resulting Vt timeval in Fa res .

    timerclear ();
    initializes Fa tvp to midnight (0 hour) January 1st, 1970 (the Epoch).

    timerisset ();
    returns true if Fa tvp is set to any time value other than the Epoch.

    timercmp ();
    compares Fa a to Fa b using the comparison operator given in Fa CMP , and returns the result of that comparison.  

    SEE ALSO

    gettimeofday(2)  

    HISTORY

    The timeradd ();
    family of macros were imported from Nx 1.1 , and appeared in Fx 2.2.6 .


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    SEE ALSO
    HISTORY


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру