Example #1
0
 long GetTickCount() {
     if (!m_fInitialized) {
         OneShot();
         m_fInitialized = true;
     }
     return m_ct;
 }
Example #2
0
 virtual void OnMessage(base::Message *pmsg) {
     m_ct++;
     OneShot();
 }
Example #3
0
/** Starts a nanokernel timer in one-shot mode with ISR callback.
	
	Queues the timer to expire in the specified number of nanokernel ticks. The
	actual wait time will be at least that much and may be up to one tick more.
	The expiry handler will be called in ISR context.
	
	Note that NKern::TimerTicks() can be used to convert milliseconds to ticks.

	@param	aTime Timeout in nanokernel ticks
	
	@return	KErrNone if no error; KErrInUse if timer is already active.
	
	@pre	Any context
	
	@see    NKern::TimerTicks()
 */
EXPORT_C TInt NTimer::OneShot(TInt aTime)
	{
	return OneShot(aTime,FALSE);
	}