1 //------------------------------------------------------------------------------
4 // Desc: DirectShow base classes - defines a system clock implementation of
7 // Copyright (c) 1992-2002 Microsoft Corporation. All rights reserved.
8 //------------------------------------------------------------------------------
11 #ifndef __SYSTEMCLOCK__
12 #define __SYSTEMCLOCK__
15 // Base clock. Uses timeGetTime ONLY
16 // Uses most of the code in the base reference clock.
20 class CSystemClock
: public CBaseReferenceClock
, public IAMClockAdjust
, public IPersist
23 // We must be able to create an instance of ourselves
24 static CUnknown
* WINAPI
CreateInstance(LPUNKNOWN pUnk
, HRESULT
*phr
);
25 CSystemClock(TCHAR
*pName
, LPUNKNOWN pUnk
, HRESULT
*phr
);
29 STDMETHODIMP
NonDelegatingQueryInterface(REFIID riid
,void ** ppv
);
31 // Yield up our class id so that we can be persisted
32 // Implement required Ipersist method
33 STDMETHODIMP
GetClassID(CLSID
*pClsID
);
35 // IAMClockAdjust methods
36 STDMETHODIMP
SetClockDelta(REFERENCE_TIME rtDelta
);
39 #endif /* __SYSTEMCLOCK__ */