次の方法で共有


CRefTime Class (Windows Embedded CE 6.0)

1/6/2010

Ee493113.c962ed75-3e61-4654-88c7-4495f50307a3(en-US,WinEmbedded.60).gif

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 time is a unit of time represented in 100-nanosecond units. This time unit is the same time unit used by the Win32 FILETIME structure, 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

CRefTime

Constructs a CRefTime object.

GetUnits

Returns the reference time in units of 100 nanoseconds.

Millisecs

Returns the reference time in milliseconds.

Operators

Operator Description

operator (REFERENCE_TIME)

Casts the CRefTime object to a REFERENCE_TIME data type. The result is the m_time value.

operator =

Implements the copy constructor for the CRefTime class.

operator +=

Adds two CRefTime objects and makes this object equal to the result.

operator –=

Subtracts one CRefTime object from another CRefTime object and makes this object equal to the result.

Requirements

Windows Embedded CE Windows CE 2.12 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

See Also

Reference

DirectShow Classes