Developers have several options to profile application behavior with timers. Each of these options have advantages and disadvantages.
Contents |
TInt tickPeriod; HAL::Get(HAL::ENanoTickPeriod, tickPeriod);
TInt tickPeriod; HAL::Get(HALData::EFastCounterFrequency, tickPeriod);
HAL::Get(HAL::ENanoTickPeriod, tickPeriod); // User side // or TInt tickPeriod = NKern::TickPeriod() // Kernel side
This sample illustrates a way to calculate the time elapsed between two calls using TTime::UniversalTime().
... TReal iFps; // frame per seconds TTime iOldTime; ... void CMyActiveObject::RunL() { TTime time; time.UniversalTime(); // You may need to make sure that time counter is incremented // to avoid division by zero iFps = 1000000 / time.MicroSecondsFrom( iOldTime ).Int64(); iOldTime = time; }
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Timer pop up while thread is working? | nadav70 | General Symbian C++ | 1 | 2008-02-24 01:21 |
| Calling CActiveScheduler::Start() from inside a loop | reuvend | General Symbian C++ | 16 | 2008-07-13 11:15 |
| GPRS, Bluetooth and GPS | mig_der | Mobile Java General | 10 | 2008-10-13 09:32 |
| Help: "CPeriodic timer" compile error ? | tiger zhou | General Symbian C++ | 2 | 2006-02-12 18:56 |
| Call counters/timers | Jasmijn | General Discussion | 1 | 2004-07-12 15:01 |