GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
difftimeofday(3) FreeBSD Library Functions Manual difftimeofday(3)

#include <xtend/time.h>
-lextend

time_t  difftimeofday(struct timeval *later, struct timeval *earlier)

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

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.

The difference between the two times in microseconds

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


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.