DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

udi_time_between(3udi)


Return time interval between two points

SYNOPSIS

#include <udi.h>

udi_time_t udi_time_between (

	udi_timestamp_t start_time,

	udi_timestamp_t end_time );
 

ARGUMENTS start_time is a timestamp value marking the starting point of the interval.

end_time is a timestamp value marking the ending point of the interval.

DESCRIPTION udi_time_between returns the time delta between two previously recorded times, in start_time and end_time. The previously recorded times must have been obtained via udi_time_current.

start_time must reflect a time that occurred no later than end_time.

The system time resolution can be determined from the min_curtime_res field in the udi_limits_t structure.

RETURN VALUES The time interval, in seconds and nanoseconds, is returned to the caller.

REFERENCES udi_time_t, udi_limits_t, udi_time_current, udi_time_since


UDI Core Specification Contents