CSystemClockSource Class Reference

#include "devvideobase.h"

Link against: devvideo.lib

class CSystemClockSource : public CBase

Inherits from

  • CSystemClockSource

    Detailed Description

    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.

    Constructor & Destructor Documentation

    ~CSystemClockSource ( )

    IMPORT_C~CSystemClockSource()

    Destructor.

    Member Function Documentation

    CustomInterface ( TUid )

    TAny *CustomInterface(TUidaInterface)[virtual]

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

    ParameterDescription
    aInterface"The interface"

    Returns: "NULL"

    NewL ( )

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

    Returns: "A new clock source object."

    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.

    ParameterDescription
    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.

    Returns: "The number of microseconds that have elapsed in the stream."