Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
xt_difftimeofday(3)	   Library Functions Manual	   xt_difftimeofday(3)

NAME
       xt_difftimeofday() - Compute difference between struct timeval values

LIBRARY
       #include	<xtend/time.h>
       -lxtend

SYNOPSIS
       time_t  xt_difftimeofday(struct timeval *later, struct timeval *earlier)

ARGUMENTS
       later, earlier: timeval structures populated by gettimeofday(3)

DESCRIPTION
       xt_difftimeofday() returns the difference, in microseconds, between two
       time  values returned by	gettimeofday(3).  This function	can be used to
       get a good estimate of the real time elapsed in a process  between  any
       two points (where calls to gettimeofday(3) are strategically placed.)

       Use  of	these functions	should have minimal impact on run time,	unless
       called many times to measure time of a function with a very  short  run
       time.

RETURN VALUES
       The difference between the two times in microseconds

SEE ALSO
       gettimeofday(2),	xt_tic(3), xt_toc(3)

							   xt_difftimeofday(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_difftimeofday&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help