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
startparameter from the value specified by theendparameter.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
startparameter.- function result
- Returns the
resultparameter.DISCUSSION
This function subtracts the timestamp referenced by thestartparameter from the timestamp referenced by theendparameter. The return value is the same as the parameterresult.Use the
OTElapsedMillisecondsfunction to measure elapsed time in milliseconds.Use the
OTElapsedMicrosecondsfunction to measure elapsed time in microseconds.