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 /


OTElapsedMilliseconds

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

C INTERFACE
UInt32 OTElapsedMilliseconds (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 milliseconds that have elapsed since the timestamp specified by the startTime parameter.
DISCUSSION
Returns the number of milliseconds 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 milliseconds.

Use the OTElapsedMicroseconds function to measure elapsed time in microseconds.

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