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 /


OTElapsedMicroseconds

Calculates the time elapsed in microseconds since since the time specified by the startTime parameter.

C INTERFACE
UInt32 OTElapsedMicroseconds (OTTimeStamp* startTime)
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
startTime
A reference to a timestamp value returned by the OTGetTimeStamp function; this indicates the start of the elapsed time interval.
function result
The number of microseconds that have elapsed since the timestamp specified by the startTime parameter.
DISCUSSION
Returns the number of microseconds that have elapsed since the OTGetTimeStamp function was called to get the startTime value.

A return value of 0xffff ffff indicates that the value has overflowed 32 bits of microseconds.

Use the OTElapsedMilliseconds function to measure elapsed time in milliseconds.

Use the OTGetClockTimeInSecs function to determine the number of seconds that have elapsed since system boot time.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998