Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

How reliable is tx_get_time function?

$
0
0

Hi,

We have a Synergy project with various functions all included in one thread. There's a specific function that we're worried about. To find out about how long it takes to complete that function, we placed tx_get_time at the beginning and at the end of the function. To avoid any time delays due to serial bus, we used the screen on the board to display the duration it took to complete the function's operation. 

However, we got a result that was much higher than what we expected. Investigating the problem, we realized that no matter how much we increase the loop sizes(doubling or even quadrupling), the time duration is always the same. 

Now, my question is is time difference between two tx_get_time functions equal to the time it takes to process only the code written between them or does it also include some background operations RTOS might try to process in the meantime? Is there any reliable way to find the performance of isolated functions?

I know my question sounds really complicated, but I'm more than happy to clarify my question.

Best,

Furkan


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>