Important: The information in this document is obsolete and should not be used for new development.
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 theend
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 thestart
parameter from the timestamp referenced by theend
parameter. The return value is the same as the parameterresult
.Use the
OTElapsedMilliseconds
function to measure elapsed time in milliseconds.Use the
OTElapsedMicroseconds
function to measure elapsed time in microseconds.