Microsoft Windows CE 3.0  

CRefTime Class

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 Microsoft Win32 FILETIMEstructure, although the two types cannot be interchanged. Note that the time a REFERENCE_TIME represents is not the time elapsed since 1/1/1601. It is either stream time or reference time, depending on the context.

Data Members

m_time REFERENCE_TIME value of this object.

Member Functions

CRefTime Constructs a CRefTimeobject.
GetUnits Returns the reference time in units of 100 nanoseconds.
Millisecs Returns the reference time in milliseconds.

Operators

operator (REFERENCE_TIME) Casts the CRefTime object to a REFERENCE_TIME data type. The result is the m_timevalue.
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.