hummm...I think it will better I make what I need and after see if it is
good or not.
Ben Combee, thank you a lot for your allways fast and efficient answer.

Ricardo

-----Mensagem original-----
De: Ben Combee [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 18 de agosto de 2004 12:41
Para: Palm Developer Forum
Assunto: Re: RES: Cycles of Clock


At 10:37 AM 8/18/2004, you wrote:
>I�m sorry for the "waste". Fortunately you understand what I mean, I made a
>bad interpretation of waste word. I hope I get a better english soon, or I
>give up and starts to learn Esperanto. :-)
>
>Well, I use a Motorola Dragonball 33MHz (tungstenW - about 30,3ns). Do you
>know how much time are used to perform the function I request when this
>function is constant-time O(1). Of course, if nobody knows I will search in
>motorola�s datasheet.

Motorola's datasheet wouldn't tell you.  The 68K processor in the 
Dragonball VZ chip uses multiple cycles per instruction, but there's no 
clear count of how many instructions are executed to perform these actions.

If you really, really need this info, try setting up a loop to perform the 
action a million times, get the tick count before and after, and divide the 
number of ticks by a million.


-- Ben Combee, DTS technical lead, PalmSource, Inc.
    "Combee on Palm OS" weblog: http://palmos.combee.net/
    Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to