class RTimer : public RHandleBase |
Asynchronous timer services.
Five types of asynchronous request are supported by the class:
1. Requesting an event after a specified interval
2. Requesting an event at a specified system time
3. Requesting a timer event on a specific second fraction
4. Requesting an event if an interval elapses with no user activity.
5. Requesting an event after a specified interval, to a resolution of 1ms.
Each of these requests can be cancelled.
The timer exists from its creation, following a call to RTimer::CreateLocal(), until it is destroyed by a call to the Close() member function of the base class RHandleBase.
This class is ultimately implemented in terms of the nanokernel tick, and therefore the granularity of the generated events is limited to the period of this timer. This is variant specific, but is usually 1 millisecond.
Public Member Functions | |
---|---|
IMPORT_C void | After(TRequestStatus &, TTimeIntervalMicroSeconds32) |
IMPORT_C void | AfterTicks(TRequestStatus &, TInt) |
IMPORT_C void | At(TRequestStatus &, const TTime &) |
IMPORT_C void | AtUTC(TRequestStatus &, const TTime &) |
IMPORT_C void | Cancel() |
IMPORT_C TInt | CreateLocal() |
IMPORT_C void | HighRes(TRequestStatus &, TTimeIntervalMicroSeconds32) |
IMPORT_C void | Inactivity(TRequestStatus &, TTimeIntervalSeconds) |
IMPORT_C void | Lock(TRequestStatus &, TTimerLockSpec) |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C void | After | ( | TRequestStatus & | aStatus, |
TTimeIntervalMicroSeconds32 | anInterval | |||
) |
TRequestStatus & aStatus | |
TTimeIntervalMicroSeconds32 anInterval |
IMPORT_C void | AfterTicks | ( | TRequestStatus & | aStatus, |
TInt | aTicks | |||
) |
TRequestStatus & aStatus | |
TInt aTicks |
IMPORT_C void | At | ( | TRequestStatus & | aStatus, |
const TTime & | aTime | |||
) |
TRequestStatus & aStatus | |
const TTime & aTime |
IMPORT_C void | AtUTC | ( | TRequestStatus & | aStatus, |
const TTime & | aUTCTime | |||
) |
TRequestStatus & aStatus | |
const TTime & aUTCTime |
IMPORT_C void | HighRes | ( | TRequestStatus & | aStatus, |
TTimeIntervalMicroSeconds32 | anInterval | |||
) |
TRequestStatus & aStatus | |
TTimeIntervalMicroSeconds32 anInterval |
IMPORT_C void | Inactivity | ( | TRequestStatus & | aStatus, |
TTimeIntervalSeconds | aSeconds | |||
) |
TRequestStatus & aStatus | |
TTimeIntervalSeconds aSeconds |
IMPORT_C void | Lock | ( | TRequestStatus & | aStatus, |
TTimerLockSpec | aLock | |||
) |
TRequestStatus & aStatus | |
TTimerLockSpec aLock |