次の方法で共有


GetTickCount

This function returns the number of milliseconds since boot time.

  DWORD GetTickCount (void);
   

Return Values

The returned DWORD is a count of system ticks (or milliseconds) since boot time.

Remarks

The returned value should be used only to calculate time relative to other values returned by GetTickCount. After it reaches the highest possible value, the value wraps to zero and begins incrementing again. The value does not indicate time-of-day. To use time-of-day values, implement OEMGetRealTime and other related functions.

GetTickCount need only be called for platforms using CPUs that do not have well-defined timer channels.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.10 and later Mkfuncs.h    

See Also

OEMGetRealTime, QueryPerformanceCounter