Code example for Date

Methods: getTime, setTime

0
		 if (wake<=0)
	         queueEvent(new Runnable(){ public void run() { me.onPoll(); } } );
		 else 
		 { 
		    final int tid = ++mTimerID;
			 Date end = new Date();
			 end.setTime( end.getTime() + (int)(wake * 1000) );
			 mTimer.schedule( new java.util.TimerTask(){ public void run()
			    { 
				    if (tid==me.mTimerID)
				       me.queuePoll();
				 } }, end );
		 } 
		     
   } 
 
   void sendActivity(final int inActivity)
   { 
	   queueEvent(new Runnable(){ public void run() { NME.onActivity(inActivity); } } );
   }