Hi,
I use an msp430f16 and I want to calculate the execution time of a code (in milliseconds)
any idea?
thanks

Hi,
I use an msp430f16 and I want to calculate the execution time of a code (in milliseconds)
any idea?
thanks

It looks like your chip has timers; I don't know the MSP430 series myself, but I bet you could set up an interrupt to keep track of running time. It would be a slight overestimate because of the counting overhead, so it would be more useful for longer-running code.

If you are programming in C, then you can use the interval timer with the functions setitimer() and getitimer(). This is a standard function in Linux. Not sure about Windoze.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.