CSystemClockSource Class Reference

class CSystemClockSource : public CBase

The CSystemClockSource provides a basic clock source implementation based on the system clock. It will count microseconds since the object was created or Reset() was last called, and return that count from Time(). It does not implement any custom interfaces.

Inherits from

Constructor & Destructor Documentation

CSystemClockSource()

CSystemClockSource()[private]

~CSystemClockSource()

IMPORT_C~CSystemClockSource()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

CustomInterface(TUid)

TAny *CustomInterface(TUidaInterface)[virtual]

No custom interfaces are implemented by this clock source, so this method will always return NULL.

Parameters

TUid aInterface"The interface"

NewL()

IMPORT_C CSystemClockSource *NewL()[static]
Creates a new CSystemClockSource object.
leave
"This method may leave with one of the system-wide error codes."

Reset()

IMPORT_C voidReset()

Resets the clock source to zero. Typically called by the DevVideo client at stream start.

Reset(const TTimeIntervalMicroSeconds &)

IMPORT_C voidReset(const TTimeIntervalMicroSeconds &aOffset)

Resets the clock source to a user-defined offset. Typically called by the DevVideo client when seeking in a file.

Parameters

const TTimeIntervalMicroSeconds & aOffset"The clock offset."

Resume()

IMPORT_C voidResume()

Resumes the clock source after a Suspend() method call. This method is used when resuming playback.

Suspend()

IMPORT_C voidSuspend()

Suspends the clock source. The clock time will not increment until the clock has been resumed. This method is used when pausing playback.

Time()

TTimeIntervalMicroSeconds Time()[virtual]

Retrieves the time that has elapsed since Reset() was last called, subtracting any time during which the clock was suspended.

Member Data Documentation

RCriticalSection iCriticalSection

RCriticalSection iCriticalSection[private]

TTime iCurrentTime

TTime iCurrentTime[private]

TTimeIntervalMicroSeconds iOffset

TTimeIntervalMicroSeconds iOffset[private]

TTime iStartTime

TTime iStartTime[private]

TBool iSuspended

TBool iSuspended[private]

TTimeIntervalMicroSeconds iTimeSuspended

TTimeIntervalMicroSeconds iTimeSuspended[private]

TTime iTimeWhenSuspended

TTime iTimeWhenSuspended[private]