Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This class is used to manage reference times. It shares the same data layout as the REFERENCE_TIME data type, but adds some (nonvirtual) functions that provide simple comparison, conversion, and arithmetic capabilities.
A reference timeis a unit of time represented in 100-nanosecond units. This time unit is the same time unit used by the Win32 FILETIMEstructure, although the two types cannot be interchanged.
The time represented by REFERENCE_TIME is not the time elapsed since 1/1/1601. It is either stream time or reference time, depending on the context.
Data Members
Member | Description |
---|---|
m_time |
REFERENCE_TIME value of this object. |
Member Functions
Member function | Description |
---|---|
Constructs a CRefTimeobject. |
|
Returns the reference time in units of 100 nanoseconds. |
|
Returns the reference time in milliseconds. |
Operators
Operator | Description |
---|---|
Casts the CRefTimeobject to a REFERENCE_TIME data type. The result is the m_timevalue. |
|
Implements the copy constructor for the CRefTimeclass. |
|
Adds two CRefTimeobjects and makes this object equal to the result. |
|
Subtracts one CRefTimeobject from another CRefTimeobject and makes this object equal to the result. |
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have
different include file and Library requirements
For more information, see Setting Up the Build Environment |