Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 27 - Utilities Reference / Functions
Timestamp Utility Functions /


OTSubtractTimeStamps

Subtracts one timestamp value from another.

C INTERFACE
OTTimeStamp* OTSubtractTimeStamps(
                     OTTimeStamp* result,
                     OTTimeStamp* start,
                     OTTimeStamp* end)
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
result
On output, a pointer to the timestamp value that results from subtracting the value specified by the start parameter from the value specified by the end parameter.
start
A pointer to the timestamp value that you want to subtract.
end
A pointer to the timestamp value from which you want to subtract the value referenced by the start parameter.
function result
Returns the result parameter.
DISCUSSION
This function subtracts the timestamp referenced by the start parameter from the timestamp referenced by the end parameter. The return value is the same as the parameter result.

Use the OTElapsedMilliseconds function to measure elapsed time in milliseconds.

Use the OTElapsedMicroseconds function to measure elapsed time in microseconds.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998