-
Timer query
Hi all,
i am using active objects in my application. In the RunL function i am using RTimer object to generate the event.
[code]
void CGenerateText::RunL()
{
// Change visibility of app view text
ShowText(EFalse);
// Re-issue request
iTimer.After(iStatus, iHalfPeriod);
SetActive();
}
[/code]
Here iTimer is of type RTimer and iHalfPeriod is of type TTimeIntervalMicroSeconds32.
It is working perfectly allright but the range for the time interval is 35 minutes 47 sec. But i want a larger range (say 2hours). I want to know what kind of timers should i use for the larger range of time interval.
thanks and regards,
Krishna.
-
Re: Timer query
Hi,
Have you tried using
RTimer::At(). Check the SDK documentation for this if it suits your purpose.
-
Re: Timer query
-
Re: Timer query
Hi,,
I had previously faced the same problem. You need to implement the counter which gets incremented say every 30 min. ad then reset the counter AND perform the task when threshold for your counter has reached.
-
Re: Timer query
Hi Kumar,
yes After will not work after 35min and 47 it is mentioned in the documentation of TTimeIntervalMicroSeconds32 [URL="http://www.symbian.com/developer/techlib/v9.3docs/doc_source/reference/reference-cpp/E32_EKA2/TTimeIntervalMicroSeconds32Class.html#%3a%3aTTimeIntervalMicroSeconds32"]here[/URL]. However there is solution for your problem you should be using RTimer::At() pass the time you want. For example
you want a call back after 2 hours. Then you should try sth like
[CODE]TTime time;
time.HomeTime();
time += aTime;
iTimer.At( time );
[/CODE]