mfplat: Use QueryPerformanceCounter in MFGetSystemTime.
This commit is contained in:
parent
0ce5584acc
commit
7cc24be079
1 changed files with 6 additions and 3 deletions
|
@ -974,11 +974,14 @@ HRESULT WINAPI MFTUnregisterLocal(IClassFactory *factory)
|
|||
|
||||
MFTIME WINAPI MFGetSystemTime(void)
|
||||
{
|
||||
MFTIME mf;
|
||||
static LARGE_INTEGER frequency;
|
||||
LARGE_INTEGER counter;
|
||||
|
||||
GetSystemTimeAsFileTime( (FILETIME*)&mf );
|
||||
if (!frequency.QuadPart)
|
||||
QueryPerformanceFrequency(&frequency);
|
||||
QueryPerformanceCounter(&counter);
|
||||
|
||||
return mf;
|
||||
return counter.QuadPart * 10000000 / frequency.QuadPart;
|
||||
}
|
||||
|
||||
static BOOL mft_is_type_info_match(struct mft_registration *mft, const GUID *category, UINT32 flags,
|
||||
|
|
Loading…
Add table
Reference in a new issue