convert_ts_to_tv(3) — UNIX Programmer’s Manual
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)
intts_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.
NeXT, Inc. — March 24, 1989