RaulRB Posted January 7, 2017 Share Posted January 7, 2017 Hello. I can't catch times measures by standards procedures ( "time.h" in C per example) How can I measure the time that one process uses with C in SDSoC? Thanks Link to comment Share on other sites More sharing options...
artvvb Posted January 9, 2017 Share Posted January 9, 2017 Hi RaulRB, I personally haven't used SDSoC before, but from this link, it looks like as long as you have access to the the default libraries, sds_clock_counter() is what you're looking for. Thinking along the lines of: unsigned long long time_to_eval = sds_clock_counter()*2; function_under_test(); time_to_eval = sds_clock_counter()*2 - time_to_eval; print time_to_eval; Assuming that the correct library has been included and you aren't in a linux environment. Hope this helps, Arthur Link to comment Share on other sites More sharing options...
Question
RaulRB
Hello.
I can't catch times measures by standards procedures ( "time.h" in C per example)
How can I measure the time that one process uses with C in SDSoC?
Thanks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.