-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Girish wrote: [...] > The above explanation will hold only good if and only if the timers > are in ascending order or descending order.Not ina random fashion > which i missed to mention
Well, sort them then! Remember, time *only* increments. It doesn't matter how randomly the application sets its timers, the earliest one still has to go off first. All you need to do is to figure out which one is earliest --- which is trivial --- and set your hardware timer to that one. > Timer1 start --- > 10sec --- > 1sec,2sec,..........10 sec I still don't know what you mean by this, but if you mean that timer1 goes off at now+10, now+1, now+2 and another now+10, then the earliest timer expiration is obviously going to be now+1. - -- David Given d...@cowlark.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJh8HAf9E0noFvlzgRAp81AKDKdyAi4Xixz5H9RzfAVthfHula3wCgzn7z VMeo+yOBRLove8hAjGITrdU= =evKf -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---