Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

altera cyclone V ways to measure execution time in interrupt handler?

Altera_Forum
Honored Contributor II
923 Views

i am developing an application on cyclone v board.As per my app is very time critical, i am having few copy operations in the interrupt handler (top half only as bottom half latency is not good for my app). so i need to measure the time consumed by these copy operations. i have used KTIME api and got some time but is there any other way to cross check it.?? jiffies isnt working as time is in usec so plz suggest some way ?????

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
149 Views

got a working solution. i used do_gettimeofday(). 

it filled the two time structures. and found out the seconds and microseconds between two times of before and after my copy operations.although i subtracted microseconds and seconds myself not programmatically coz of kernel floating point issues.and ktime and do_gettimeofday gives same result so cross check operation done :)
Reply