#include <toolhelp.h>
typedef struct tagTIMERINFO { /* ti */
DWORD dwSize;
DWORD dwmsSinceStart;
DWORD dwmsThisVM;
} TIMERINFO;
The TIMERINFO structure contains the elapsed time since the current task became active and since the virtual machine (VM) started.
dwSize
Specifies the size of the TIMERINFO structure, in bytes.
dwmsSinceStart
Contains the amount of time, in milliseconds, since the current task became active.
dwmsThisVM
Contains the amount of time, in milliseconds, since the current VM started.
In standard mode, the dwmsSinceStart and dwmsThisVM values are the same.