convert_ts_to_tv

Section: C Library Functions (3)
Updated: March 24, 1989
Index Return to Main Contents
 

NAME

convert_ts_to_tv - convert timestamp to timeval
 

SYNOPSIS

#include <sys/time.h>
#include <sys/time_stamp.h>

convert_ts_to_tv(ts_format, tsp, tvp)
    int                 ts_format;
    struct tsval        *tsp;
    struct timeval      *tvp;

 

ARGUMENTS

ts_format
identifies (machine dependent) timestamp format
tsp
pointer to (machine dependent) timestamp
tvp
pointer to (machine independent) timeval [returned].

 

DESCRIPTION

convert_ts_to_tv converts the timestamp pointed to by tsp into a timeval according to ts_format and puts the resultant value in the timeval pointed to by tvp.

ts_format should be the value of the symbol TS_FORMAT at the time that the timestamps were taken.  

DIAGNOSTICS

No value is returned. If ts_format is not valid, the timeval pointed to by tvp will be zeroed.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
DIAGNOSTICS

This document was created by man2html, using the manual pages.
Time: 13:50:30 GMT, September 25, 2024