Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TTime
Inherited By:
None.
Purpose:
A derived class of TTime for microseconds.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Derived classes must preserve TTime and TMicroseconds interfaces.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TMicroseconds ()
- TMicroseconds (double numberOfMicroseconds)
- TMicroseconds (const TMicroseconds & theMicroseconds)
- TMicroseconds (const TTime & theTime)
Interface Category:
API.
Purpose:
- Default constructor.
- Constructor for initializing with the number of microseconds.
- Copy constructor.
- Copy constructor for TTime and derived classes.
Calling Context:
Call this function directly.
- Called by the stream-in operators and for uninitialized objects.
- Called to initialize to a value.
- Called to copy an object.
- Called to copy a TTime or derived class.
Parameters:
- Takes no parameters.
- double numberOfMicroseconds -The number of microseconds to be represented.
- const TMicroseconds & theMicroseconds -The object to copy.
- const TTime & theTime -The object to copy.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
Can be safely type cast between TTime derived classes because no extra storage is added.
virtual ~ TMicroseconds ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Call this function directly.
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TMicroseconds::GetMicroseconds
double GetMicroseconds () const
Interface Category:
API.
Purpose:
Gets the number of microseconds represented by the object.
Calling Context:
Call this function directly.
Called to get the number of microseconds as a double.
Parameters:
Return Value:
The microseconds.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
Returns a double that could be a NaN, or positive or negative infinity, depending on the time.
Member Function: TMicroseconds::operator=
TMicroseconds & operator =(const TMicroseconds & theMicroseconds)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Call this function directly.
Called when an object is assigned to another compatible object.
Parameters:
- const TMicroseconds & theMicroseconds -The source object for the assignment.
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.