- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a custom component in my qsys project and I want to record the processing time in the component by using 'clock()' in the nios C code. The problem is whenever I add these lines: '#include<time.h>', 'begin = clock()', 'end = clock()', 'time = (end-begin) / CLOCKS_PER_SEC' to the code, the ELF downloading will fail. Any suggestion why this happens and any alternative way I can record the execution time for my component? Thanks!Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've never used clock() in NIOS, and I don't see why ELF downloading would fail because of the snippet you posted.
However, I would recommend reading this appnote: http://www.altera.com/support/examples/nios2/exm-profiling-de.html In particular, the piece on the Performance Counter starting on page 11.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page